diff options
author | Florian Eckert <fe@dev.tdt.de> | 2018-12-20 10:09:58 +0100 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2018-12-20 10:20:23 +0100 |
commit | 121e7fea66b686cab8756ccdc0727b47afb288d2 (patch) | |
tree | a44b04abdf003ac5f7ed539c9a5c1ce0db7cb000 /applications/luci-app-banip/luasrc | |
parent | 6475221d54be41dbfa4639c4cef5046b186e296f (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-banip/luasrc')
-rw-r--r-- | applications/luci-app-banip/luasrc/view/banip/logview.htm | 2 | ||||
-rw-r--r-- | applications/luci-app-banip/luasrc/view/banip/runtime.htm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-banip/luasrc/view/banip/logview.htm b/applications/luci-app-banip/luasrc/view/banip/logview.htm index d298b24de..86f1ea64f 100644 --- a/applications/luci-app-banip/luasrc/view/banip/logview.htm +++ b/applications/luci-app-banip/luasrc/view/banip/logview.htm @@ -10,7 +10,7 @@ This is free software, licensed under the Apache License, Version 2.0 //<![CDATA[ function log_update() { - XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "services", "banip", "logview")%>', null, + XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "services", "banip", "logview")%>', null, function(x) { if (!x) diff --git a/applications/luci-app-banip/luasrc/view/banip/runtime.htm b/applications/luci-app-banip/luasrc/view/banip/runtime.htm index 65a58bd37..08ef90399 100644 --- a/applications/luci-app-banip/luasrc/view/banip/runtime.htm +++ b/applications/luci-app-banip/luasrc/view/banip/runtime.htm @@ -76,7 +76,7 @@ function btn_action(action) status_update(json_info) }); - XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "services", "banip", "status")%>', null, + XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "services", "banip", "status")%>', null, function(x, json_info) { if (!x || !json_info) |