diff options
-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'); |