From 2815fed05e0232016d7b00bd206f1bf915063619 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Sun, 27 Sep 2020 07:03:15 +0200 Subject: luci-app-travelmate: sync with travelmate 2.0.1 * just change the location of one state file Signed-off-by: Dirk Brenken --- .../htdocs/luci-static/resources/view/travelmate/stations.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate') diff --git a/applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js b/applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js index 42a1e9aa88..8b3b7d3993 100644 --- a/applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js +++ b/applications/luci-app-travelmate/htdocs/luci-static/resources/view/travelmate/stations.js @@ -104,10 +104,10 @@ function handleSectionsVal(action, section_id, option, value) { */ function handleStatus() { poll.add(function() { - L.resolveDefault(fs.stat('/var/run/travelmate.refresh'), null).then(function(res) { + L.resolveDefault(fs.stat('/var/state/travelmate.refresh'), null).then(function(res) { if (res) { - L.resolveDefault(fs.read_direct('/var/run/travelmate.refresh'), null).then(function(res) { - fs.remove('/var/run/travelmate.refresh'); + L.resolveDefault(fs.read_direct('/var/state/travelmate.refresh'), null).then(function(res) { + fs.remove('/var/state/travelmate.refresh'); if (res && res === 'ui_reload') { location.reload(); } -- cgit v1.2.3