From 184523b6e7f534c45e4a4a3d2151100cdba57b16 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 17 Nov 2010 15:23:21 +0000 Subject: modules/admin-full: xhr fixes --- modules/admin-full/luasrc/view/admin_network/iface_overview.htm | 8 +++++--- modules/admin-full/luasrc/view/admin_network/iface_status.htm | 8 +++++--- modules/admin-full/luasrc/view/admin_network/lease_status.htm | 8 +++++--- modules/admin-full/luasrc/view/admin_network/wifi_overview.htm | 8 +++++--- modules/admin-full/luasrc/view/admin_network/wifi_status.htm | 8 +++++--- 5 files changed, 25 insertions(+), 15 deletions(-) (limited to 'modules') diff --git a/modules/admin-full/luasrc/view/admin_network/iface_overview.htm b/modules/admin-full/luasrc/view/admin_network/iface_overview.htm index 08bac76b9..f77ee63e6 100644 --- a/modules/admin-full/luasrc/view/admin_network/iface_overview.htm +++ b/modules/admin-full/luasrc/view/admin_network/iface_overview.htm @@ -66,7 +66,7 @@ $Id$ var wifidevs = <%=luci.http.write_json(netdevs)%>; var arptable = <%=luci.http.write_json(arpcache)%>; - (function() { + var update_status = function() { iwxhr.get('<%=luci.dispatcher.build_url("admin", "network", "iface_status", table.concat(netlist, ","))%>', null, function(x, ifcs) { @@ -161,11 +161,13 @@ $Id$ } } } + + window.setTimeout(update_status, 5000); } ) + }; - window.setTimeout(arguments.callee, 5000); - })(); + update_status(); ]]>