summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2018-12-20 10:09:58 +0100
committerFlorian Eckert <fe@dev.tdt.de>2018-12-20 10:20:23 +0100
commit121e7fea66b686cab8756ccdc0727b47afb288d2 (patch)
treea44b04abdf003ac5f7ed539c9a5c1ce0db7cb000 /applications/luci-app-mwan3
parent6475221d54be41dbfa4639c4cef5046b186e296f (diff)
luci-app-*: use default poll interval
Replace all XHR poll time number with -1 so they will use the default poll interval time value from "/etc/config/luci". If this is not set then 5 seconds as default is used. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-mwan3')
-rw-r--r--applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm2
-rw-r--r--applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm2
2 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm b/applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm
index 49d120c1a..259f3c975 100644
--- a/applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm
+++ b/applications/luci-app-mwan3/luasrc/view/mwan/overview_status_interface.htm
@@ -5,7 +5,7 @@
-%>
<script type="text/javascript">//<![CDATA[
-XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface_status")%>', null,
+XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface_status")%>', null,
function(x, status)
{
var statusDiv = document.getElementById('mwan_status_text');
diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm b/applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm
index 12700c4a3..77fce3f91 100644
--- a/applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm
+++ b/applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm
@@ -14,7 +14,7 @@
</ul>
<script type="text/javascript">//<![CDATA[
- XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "detailed_status")%>', null,
+ XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "detailed_status")%>', null,
function(x)
{
var output = document.getElementById('diag-rc-output');