diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-09-25 20:54:24 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-09-25 20:54:24 +0000 |
commit | 4a32a5751d868309b0cf1bd47d5deb92e127caf4 (patch) | |
tree | 1360b4d2e7301045f28efbb32a64f582bfbd1829 /applications/luci-upnp/luasrc/view | |
parent | 5f6ea74d22c414c93e2c6615b9e2eaa61bbff4bc (diff) |
applications/luci-upnp: javascript fixes
Diffstat (limited to 'applications/luci-upnp/luasrc/view')
-rw-r--r-- | applications/luci-upnp/luasrc/view/upnp_status.htm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/applications/luci-upnp/luasrc/view/upnp_status.htm b/applications/luci-upnp/luasrc/view/upnp_status.htm index dcac8b46e4..fbbcb3a717 100644 --- a/applications/luci-upnp/luasrc/view/upnp_status.htm +++ b/applications/luci-upnp/luasrc/view/upnp_status.htm @@ -13,7 +13,9 @@ } var stxhr = new XHR(); - var update_status = function() { + (function() { + var func = arguments.callee; + stxhr.get('<%=luci.dispatcher.build_url("admin", "services", "upnp", "status")%>', null, function(x, st) { @@ -51,12 +53,10 @@ } } - window.setTimeout(update_status, 5000); + window.setTimeout(func, 5000); } ) - }; - - update_status(); + })(); //]]></script> <fieldset class="cbi-section"> |