summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-upnp/luasrc/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-11-17 15:24:13 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-11-17 15:24:13 +0000
commit01039b7fb66c4afa065a49b0b98889c0cb51ead8 (patch)
treed64ab50850f8e0bdec20687d5a6a20501dcc8522 /applications/luci-upnp/luasrc/view
parent184523b6e7f534c45e4a4a3d2151100cdba57b16 (diff)
applications/luci-upnp: xhr fix
Diffstat (limited to 'applications/luci-upnp/luasrc/view')
-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">