diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-09-24 03:21:02 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-09-24 03:21:02 +0000 |
commit | 3311da13e79247581e60a2043400017de15b5bb6 (patch) | |
tree | 38d63563c6b9c6de36d6581097233aa5fd716d2e /modules/admin-full/luasrc/view | |
parent | 7f8ce9ae4941bdd3d5fbf584bbd404c59ecb8963 (diff) |
modules/admin-full: remove more dead code
Diffstat (limited to 'modules/admin-full/luasrc/view')
-rw-r--r-- | modules/admin-full/luasrc/view/admin_network/iface_status.htm | 44 |
1 files changed, 3 insertions, 41 deletions
diff --git a/modules/admin-full/luasrc/view/admin_network/iface_status.htm b/modules/admin-full/luasrc/view/admin_network/iface_status.htm index 523a780fab..508ccbb928 100644 --- a/modules/admin-full/luasrc/view/admin_network/iface_status.htm +++ b/modules/admin-full/luasrc/view/admin_network/iface_status.htm @@ -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'); |