modules/admin-full: remove more dead code

This commit is contained in:
Jo-Philipp Wich 2011-09-24 03:21:02 +00:00
parent 7f8ce9ae49
commit 3311da13e7

View file

@ -3,44 +3,6 @@
<script type="text/javascript">//<![CDATA[
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() {
var func = arguments.callee;
@ -54,10 +16,10 @@
var s = document.getElementById('<%=self.option%>-ifc-signal');
if (s)
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>',
String.format(icon, ifc.type),
ifc.ifname ? ifc.ifname : '?'
ifc.type, ifc.is_up ? '' : '_disabled',
ifc.name
);
var d = document.getElementById('<%=self.option%>-ifc-description');