modules/admin-full: fix remaining status template
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 25 Sep 2011 20:59:51 +0000 (20:59 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 25 Sep 2011 20:59:51 +0000 (20:59 +0000)
modules/admin-full/luasrc/view/admin_network/wifi_overview.htm

index edc231e01010b23fdd8d7917b552386991c1a84b..06725c1b910bbe9bb018f2f9d1b566bc36c0af45 100644 (file)
@@ -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();
+       })();
 //]]></script>
 
 <h2><a id="content" name="content"><%:Wireless Overview%></a></h2>