summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2018-12-20 10:10:26 +0100
committerFlorian Eckert <fe@dev.tdt.de>2018-12-20 10:20:23 +0100
commit3b9ba0210e9da62861f260b4ed367e2a05789afe (patch)
tree3a65d1102d52881f10b3515e1f1863833bcd9a52 /modules/luci-base
parent121e7fea66b686cab8756ccdc0727b47afb288d2 (diff)
luci-base: 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 'modules/luci-base')
-rw-r--r--modules/luci-base/luasrc/view/lease_status.htm2
-rw-r--r--modules/luci-base/luasrc/view/wifi_assoclist.htm2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-base/luasrc/view/lease_status.htm b/modules/luci-base/luasrc/view/lease_status.htm
index 15b6b6908..bf2a8968d 100644
--- a/modules/luci-base/luasrc/view/lease_status.htm
+++ b/modules/luci-base/luasrc/view/lease_status.htm
@@ -1,5 +1,5 @@
<script type="text/javascript">//<![CDATA[
- XHR.poll(5, '<%=url('admin/dhcplease_status')%>', null,
+ XHR.poll(-1, '<%=url('admin/dhcplease_status')%>', null,
function(x, st)
{
var tb = document.getElementById('lease_status_table');
diff --git a/modules/luci-base/luasrc/view/wifi_assoclist.htm b/modules/luci-base/luasrc/view/wifi_assoclist.htm
index b7147bfb7..f6f66fbbc 100644
--- a/modules/luci-base/luasrc/view/wifi_assoclist.htm
+++ b/modules/luci-base/luasrc/view/wifi_assoclist.htm
@@ -44,7 +44,7 @@
});
}
- XHR.poll(5, '<%=url('admin/wireless_assoclist')%>', null,
+ XHR.poll(-1, '<%=url('admin/wireless_assoclist')%>', null,
function(x, st)
{
var tb = document.getElementById('wifi_assoclist_table');