modules/admin-full: remove more dead code
This commit is contained in:
parent
7f8ce9ae49
commit
3311da13e7
1 changed files with 3 additions and 41 deletions
|
@ -3,44 +3,6 @@
|
||||||
<script type="text/javascript">//<![CDATA[
|
<script type="text/javascript">//<![CDATA[
|
||||||
var iwxhr = new XHR();
|
var iwxhr = new XHR();
|
||||||
|
|
||||||
function iface_shutdown(id, reconnect) {
|
|
||||||
if (!reconnect && !confirm(String.format('<%_Really shutdown network ?\nYou might lose access to this router if you are connected via this interface.%>', id)))
|
|
||||||
return;
|
|
||||||
|
|
||||||
var a = document.getElementById(id + '-ifc-addrs');
|
|
||||||
if (a)
|
|
||||||
{
|
|
||||||
a.innerHTML = reconnect
|
|
||||||
? '<em><%:Interface is reconnecting...%></em>'
|
|
||||||
: '<em><%:Interface is shutting down...%></em>';
|
|
||||||
}
|
|
||||||
|
|
||||||
var s = document.getElementById('ifc-rc-status');
|
|
||||||
if (s)
|
|
||||||
{
|
|
||||||
s.parentNode.style.display = 'block';
|
|
||||||
s.innerHTML = '<%:Waiting for router...%>';
|
|
||||||
}
|
|
||||||
|
|
||||||
var rcxhr = new XHR();
|
|
||||||
rcxhr.get('<%=luci.dispatcher.build_url("admin", "network")%>/iface_' + (reconnect ? 'reconnect' : 'shutdown') + '/' + id, null,
|
|
||||||
function(x)
|
|
||||||
{
|
|
||||||
if (s)
|
|
||||||
{
|
|
||||||
s.innerHTML = reconnect
|
|
||||||
? '<%:Interface reconnected%>'
|
|
||||||
: '<%:Interface shut down%>';
|
|
||||||
|
|
||||||
window.setTimeout(function() {
|
|
||||||
s.parentNode.style.display = 'none';
|
|
||||||
}, 1000);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var func = arguments.callee;
|
var func = arguments.callee;
|
||||||
|
|
||||||
|
@ -54,10 +16,10 @@
|
||||||
var s = document.getElementById('<%=self.option%>-ifc-signal');
|
var s = document.getElementById('<%=self.option%>-ifc-signal');
|
||||||
if (s)
|
if (s)
|
||||||
s.innerHTML = String.format(
|
s.innerHTML = String.format(
|
||||||
'<img src="%s" style="width:16px; height:16px" />' +
|
'<img src="<%=resource%>/icons/%s%s.png" style="width:16px; height:16px" />' +
|
||||||
'<br /><small>%s</small>',
|
'<br /><small>%s</small>',
|
||||||
String.format(icon, ifc.type),
|
ifc.type, ifc.is_up ? '' : '_disabled',
|
||||||
ifc.ifname ? ifc.ifname : '?'
|
ifc.name
|
||||||
);
|
);
|
||||||
|
|
||||||
var d = document.getElementById('<%=self.option%>-ifc-description');
|
var d = document.getElementById('<%=self.option%>-ifc-description');
|
||||||
|
|
Loading…
Reference in a new issue