From a6fa83713225cb3f2ff94e102ba87993f426e1da Mon Sep 17 00:00:00 2001 From: TrystanLea Date: Sat, 13 Aug 2022 19:51:28 +0100 Subject: [PATCH] force reload widget js cache --- Views/loadwidgets.php | 2 +- dashboard_controller.php | 2 +- module.json | 2 +- widget/kwhperiod/kwhperiod_render.js | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Views/loadwidgets.php b/Views/loadwidgets.php index b3fe0ab..143eb3c 100644 --- a/Views/loadwidgets.php +++ b/Views/loadwidgets.php @@ -48,7 +48,7 @@ function load_widget($folder,$widgetname) } if (is_file($folder."/".$widgetname."_render.js")) { - echo ""; + echo ""; $gotWidget = true; } return $gotWidget; diff --git a/dashboard_controller.php b/dashboard_controller.php index 9394a0a..003c94c 100644 --- a/dashboard_controller.php +++ b/dashboard_controller.php @@ -20,7 +20,7 @@ function dashboard_controller() $dashboard = new Dashboard($mysqli); // id, userid, content, height, name, alias, description, main, public, published, showdescription, fullscreen - $js_css_version = 11; + $js_css_version = 12; $result = false; $submenu = ''; diff --git a/module.json b/module.json index 0812d41..3c56b0b 100644 --- a/module.json +++ b/module.json @@ -1,6 +1,6 @@ { "name" : "Dashboard", - "version" : "2.3.1", + "version" : "2.3.2", "location" : "/var/www/emoncms/Modules", "branches_available": ["stable","master"] } diff --git a/widget/kwhperiod/kwhperiod_render.js b/widget/kwhperiod/kwhperiod_render.js index ed89180..ba39287 100644 --- a/widget/kwhperiod/kwhperiod_render.js +++ b/widget/kwhperiod/kwhperiod_render.js @@ -712,6 +712,7 @@ function kwhperiod_draw () { if (periodsAgo > 0 || useLastYear) { // pastPeriodEndValue var result = feed.getvalue(feedid, pastperiodEndTime.getTime()*0.001) + //console.log(result, 'past period end') var pastPeriodEndValue = result