X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-upnp%2Fluasrc%2Fview%2Fupnp_status.htm;fp=applications%2Fluci-upnp%2Fluasrc%2Fview%2Fupnp_status.htm;h=b22f1bc34de305b5b1b168419e99dda282899315;hp=3ef668e9914c885b6d98c8f9224b51324d863db9;hb=01039b7fb66c4afa065a49b0b98889c0cb51ead8;hpb=184523b6e7f534c45e4a4a3d2151100cdba57b16 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(); ]]>