From 4a32a5751d868309b0cf1bd47d5deb92e127caf4 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 25 Sep 2011 20:54:24 +0000 Subject: [PATCH] applications/luci-upnp: javascript fixes --- applications/luci-upnp/luasrc/view/upnp_status.htm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/applications/luci-upnp/luasrc/view/upnp_status.htm b/applications/luci-upnp/luasrc/view/upnp_status.htm index dcac8b46e4..fbbcb3a717 100644 --- a/applications/luci-upnp/luasrc/view/upnp_status.htm +++ b/applications/luci-upnp/luasrc/view/upnp_status.htm @@ -13,7 +13,9 @@ } var stxhr = new XHR(); - var update_status = function() { + (function() { + var func = arguments.callee; + stxhr.get('<%=luci.dispatcher.build_url("admin", "services", "upnp", "status")%>', null, function(x, st) { @@ -51,12 +53,10 @@ } } - window.setTimeout(update_status, 5000); + window.setTimeout(func, 5000); } ) - }; - - update_status(); + })(); //]]>
-- 2.30.2