From: Jo-Philipp Wich Date: Sun, 22 Apr 2012 13:35:58 +0000 (+0000) Subject: modules/admin-full: do not show protocol warning for empty interfaces, link to physic... X-Git-Tag: 0.11.0~748 X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=86e17aa65773a07b1f48e14bb02b97d18a210ece;ds=sidebyside modules/admin-full: do not show protocol warning for empty interfaces, link to physical settings instead --- diff --git a/modules/admin-full/luasrc/view/admin_network/iface_overview.htm b/modules/admin-full/luasrc/view/admin_network/iface_overview.htm index 0e03b912b..9577ed0fd 100644 --- a/modules/admin-full/luasrc/view/admin_network/iface_overview.htm +++ b/modules/admin-full/luasrc/view/admin_network/iface_overview.htm @@ -8,8 +8,6 @@ You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -$Id$ - -%> <%- @@ -164,6 +162,14 @@ $Id$ d.innerHTML = html; } + else if (d && !ifc.ifname) + { + d.innerHTML = String.format( + '<%:Network without interfaces.%>
' + + '?tab.network.%s=physical"><%:Assign interfaces...%>', + ifc.name, ifc.name + ); + } else if (d && !ifc.proto) { var e = document.getElementById(ifc.id + '-ifc-edit');