aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gui/static/js/odr-predistortion.js6
-rw-r--r--gui/templates/predistortion.html4
2 files changed, 6 insertions, 4 deletions
diff --git a/gui/static/js/odr-predistortion.js b/gui/static/js/odr-predistortion.js
index 73c3b94..7a93b2b 100644
--- a/gui/static/js/odr-predistortion.js
+++ b/gui/static/js/odr-predistortion.js
@@ -34,8 +34,10 @@ function calibraterefresh() {
$(function(){
$('#calibraterefreshbtn').click(calibraterefresh);
$('#refreshframesbtn').click(function() {
- $('#txframeimg').src("dpd/txframe.png");
- $('#rxframeimg').src("dpd/rxframe.png");
+ var d = new Date();
+ var n = d.getTime();
+ $('#txframeimg').src = "dpd/txframe.png?cachebreak=" + n;
+ $('#rxframeimg').src = "dpd/rxframe.png?cachebreak=" + n;
});
$('#calibratebtn').click(function() {
diff --git a/gui/templates/predistortion.html b/gui/templates/predistortion.html
index 6d2f738..2ebf7ea 100644
--- a/gui/templates/predistortion.html
+++ b/gui/templates/predistortion.html
@@ -45,8 +45,8 @@ along with ODR-DabMod. If not, see <http://www.gnu.org/licenses/>.
<div class="panel-heading">Capture TX and RX frames</div>
<div class="panel-body">
<div>
- <img id="txframeimg" src="dpd/txframe.png" />
- <img id="rxframeimg" src="dpd/rxframe.png" />
+ <img id="txframeimg" src="dpd/txframe.png" width="320" height="240" />
+ <img id="rxframeimg" src="dpd/rxframe.png" width="320" height="240" />
</div>
<div>
<button type="button" class="btn btn-sm btn-info" id="refreshframesbtn">