modules/admin-full: various javascript fixes in templates
This commit is contained in:
parent
ea6f5379dc
commit
e3435a49e9
2 changed files with 6 additions and 6 deletions
|
@ -19,7 +19,7 @@
|
|||
'<img src="<%=resource%>/icons/%s%s.png" style="width:16px; height:16px" />' +
|
||||
'<br /><small>%s</small>',
|
||||
ifc.type, ifc.is_up ? '' : '_disabled',
|
||||
ifc.name
|
||||
ifc.is_up ? ifc.ifname : '?'
|
||||
);
|
||||
|
||||
var d = document.getElementById('<%=self.option%>-ifc-description');
|
||||
|
|
|
@ -123,7 +123,9 @@ $Id$
|
|||
var wifidevs = <%=luci.http.write_json(netdevs)%>;
|
||||
var arptable = <%=luci.http.write_json(arpcache)%>;
|
||||
|
||||
var update_status = function() {
|
||||
(function() {
|
||||
var func = arguments.callee;
|
||||
|
||||
iwxhr.get('<%=REQUEST_URI%>', { status: 1 },
|
||||
function(x, info)
|
||||
{
|
||||
|
@ -457,12 +459,10 @@ $Id$
|
|||
if (e = document.getElementById('conns'))
|
||||
e.innerHTML = progressbar(info.conncount, info.connmax);
|
||||
|
||||
window.setTimeout(update_status, 5000);
|
||||
window.setTimeout(func, 5000);
|
||||
}
|
||||
)
|
||||
};
|
||||
|
||||
update_status();
|
||||
})();
|
||||
//]]></script>
|
||||
|
||||
<h2><a id="content" name="content"><%:Status%></a></h2>
|
||||
|
|
Loading…
Reference in a new issue