summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-upnp/luasrc/view/upnp_status.htm
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-upnp/luasrc/view/upnp_status.htm')
-rw-r--r--applications/luci-upnp/luasrc/view/upnp_status.htm8
1 files changed, 5 insertions, 3 deletions
diff --git a/applications/luci-upnp/luasrc/view/upnp_status.htm b/applications/luci-upnp/luasrc/view/upnp_status.htm
index 3ef668e991..b22f1bc34d 100644
--- a/applications/luci-upnp/luasrc/view/upnp_status.htm
+++ b/applications/luci-upnp/luasrc/view/upnp_status.htm
@@ -15,7 +15,7 @@
}
var stxhr = new XHR();
- (function() {
+ var update_status = function() {
stxhr.get('<%=luci.dispatcher.build_url("admin", "services", "upnp", "status")%>', null,
function(x, st)
{
@@ -58,11 +58,13 @@
tb.rows[0].parentNode.appendChild(tr);
}
}
+
+ window.setTimeout(update_status, 5000);
}
)
+ };
- window.setTimeout(arguments.callee, 5000);
- })();
+ update_status();
]]></script>
<fieldset class="cbi-section">