git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
5f6ea74
)
applications/luci-upnp: javascript fixes
author
Jo-Philipp Wich
<redacted>
Sun, 25 Sep 2011 20:54:24 +0000
(20:54 +0000)
committer
Jo-Philipp Wich
<redacted>
Sun, 25 Sep 2011 20:54:24 +0000
(20:54 +0000)
applications/luci-upnp/luasrc/view/upnp_status.htm
patch
|
blob
|
history
diff --git
a/applications/luci-upnp/luasrc/view/upnp_status.htm
b/applications/luci-upnp/luasrc/view/upnp_status.htm
index dcac8b46e4b577b202bee7e408806c47343c0d1d..fbbcb3a717b90a28220efcc34270a95fa800dc37 100644
(file)
--- 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();
+ })();
//]]></script>
<fieldset class="cbi-section">
git clone https://git.99rst.org/PROJECT