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>
This commit is contained in:
parent
121e7fea66
commit
3b9ba0210e
4 changed files with 4 additions and 4 deletions
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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++)
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue