diff options
Diffstat (limited to 'applications/luci-ahcp/luasrc')
-rw-r--r-- | applications/luci-ahcp/luasrc/view/ahcp_status.htm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/applications/luci-ahcp/luasrc/view/ahcp_status.htm b/applications/luci-ahcp/luasrc/view/ahcp_status.htm index bc595ce6c8..f9ac7c3b04 100644 --- a/applications/luci-ahcp/luasrc/view/ahcp_status.htm +++ b/applications/luci-ahcp/luasrc/view/ahcp_status.htm @@ -1,6 +1,8 @@ <script type="text/javascript">//<![CDATA[ var stxhr = new XHR(); - var update_status = function() { + (function() { + var func = arguments.callee; + stxhr.get('<%=luci.dispatcher.build_url("admin", "network", "ahcpd", "status")%>', null, function(x, st) { @@ -37,12 +39,10 @@ tx.innerHTML = String.format('The AHCP Service is running with ID %s.', st.uid); } - window.setTimeout(update_status, 5000); + window.setTimeout(func, 5000); } ) - }; - - update_status(); + })(); //]]></script> <fieldset class="cbi-section"> |