From 01039b7fb66c4afa065a49b0b98889c0cb51ead8 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 17 Nov 2010 15:24:13 +0000 Subject: [PATCH] applications/luci-upnp: xhr fix --- applications/luci-upnp/luasrc/view/upnp_status.htm | 8 +++++--- 1 file 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(); ]]>
-- 2.25.1