summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-upnp/luasrc
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-upnp/luasrc')
-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 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">