luci-base: use default poll interval
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 20 Dec 2018 09:10:26 +0000 (10:10 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 20 Dec 2018 09:20:23 +0000 (10:20 +0100)
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>
modules/luci-base/luasrc/view/lease_status.htm
modules/luci-base/luasrc/view/wifi_assoclist.htm
modules/luci-mod-network/luasrc/view/admin_network/switch_status.htm
modules/luci-mod-system/luasrc/view/admin_system/clock_status.htm

index 15b6b6908e497c6a35eb81ab48b27c9c629fd547..bf2a8968d1e386663dead410353ae197c9ac0267 100644 (file)
@@ -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');
index b7147bfb7176350b0c96438b2189e27bc21ec6f2..f6f66fbbc6706cdf1bde140d8b60cfa42dd7683b 100644 (file)
@@ -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');
index 68f0bbc9d4d9c3077cd9d4012ab33880cdaa4100..6e741b419ad4c63d4f43c934101da25978a34651 100644 (file)
@@ -21,7 +21,7 @@
                return status_row;
        }
 
-       XHR.poll(5, '<%=url('admin/network/switch_status')%>/' + switches.join(','), null,
+       XHR.poll(-1, '<%=url('admin/network/switch_status')%>/' + switches.join(','), null,
                function(x, st)
                {
                        for (var i = 0; i < switches.length; i++)
index 37d8ae0e854622d2d69b147752cae47f549621f5..2c96eb418094a7a5529884de8104d05e1e32debd 100644 (file)
@@ -1,7 +1,7 @@
 <%+cbi/valueheader%>
 
 <script type="text/javascript">//<![CDATA[
-       XHR.poll(5, '<%=url('admin/system/clock_status')%>', null,
+       XHR.poll(-1, '<%=url('admin/system/clock_status')%>', null,
                function(x, rv)
                {
                        var s = document.getElementById('<%=self.option%>-clock-status');