summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-upnp
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-09-25 20:54:24 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-09-25 20:54:24 +0000
commit4a32a5751d868309b0cf1bd47d5deb92e127caf4 (patch)
tree1360b4d2e7301045f28efbb32a64f582bfbd1829 /applications/luci-upnp
parent5f6ea74d22c414c93e2c6615b9e2eaa61bbff4bc (diff)
applications/luci-upnp: javascript fixes
Diffstat (limited to 'applications/luci-upnp')
-rw-r--r--applications/luci-upnp/luasrc/view/upnp_status.htm10
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 dcac8b46e..fbbcb3a71 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">