aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-11-28 16:12:30 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-11-28 16:12:30 +0100
commit878923ab610af66789531937278ed1aa58f1ebd7 (patch)
treeb57f9dece7805141490534f255392000c8e83cbc
parent90255c8d0d69f2843c72c41faab57c3905fbf906 (diff)
downloaddabmod-878923ab610af66789531937278ed1aa58f1ebd7.tar.gz
dabmod-878923ab610af66789531937278ed1aa58f1ebd7.tar.bz2
dabmod-878923ab610af66789531937278ed1aa58f1ebd7.zip
GUI add cache break to images
-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">