From: Jo-Philipp Wich Date: Sun, 25 Sep 2011 20:59:51 +0000 (+0000) Subject: modules/admin-full: fix remaining status template X-Git-Tag: 0.11.0~1699 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1f1377fdc461ef8f4faad7a95a55a3eb9431eb38;p=oweals%2Fluci.git modules/admin-full: fix remaining status template --- diff --git a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm index edc231e01..06725c1b9 100644 --- a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm +++ b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm @@ -166,7 +166,9 @@ $Id$ ); } - var update_status = function() { + (function() { + var func = arguments.callee; + iwxhr.get('<%=luci.dispatcher.build_url("admin", "network", "wireless_status", table.concat(netlist, ","))%>', null, function(x, st) { @@ -336,12 +338,10 @@ $Id$ } } - window.setTimeout(update_status, 5000); + window.setTimeout(func, 5000); } ) - }; - - update_status(); + })(); //]]>

<%:Wireless Overview%>