diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-11-17 15:24:13 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-11-17 15:24:13 +0000 |
commit | 01039b7fb66c4afa065a49b0b98889c0cb51ead8 (patch) | |
tree | d64ab50850f8e0bdec20687d5a6a20501dcc8522 /applications/luci-upnp/luasrc/view | |
parent | 184523b6e7f534c45e4a4a3d2151100cdba57b16 (diff) |
applications/luci-upnp: xhr fix
Diffstat (limited to 'applications/luci-upnp/luasrc/view')
-rw-r--r-- | applications/luci-upnp/luasrc/view/upnp_status.htm | 8 |
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"> |