summaryrefslogtreecommitdiffhomepage
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
parent184523b6e7f534c45e4a4a3d2151100cdba57b16 (diff)
applications/luci-upnp: xhr fix
-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 3ef668e99..b22f1bc34 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">