From 878923ab610af66789531937278ed1aa58f1ebd7 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 28 Nov 2018 16:12:30 +0100 Subject: GUI add cache break to images --- gui/static/js/odr-predistortion.js | 6 ++++-- gui/templates/predistortion.html | 4 ++-- 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 .
Capture TX and RX frames
- - + +