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 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gui/static/js/odr-predistortion.js') 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() { -- cgit v1.2.3