modules/admin-full: do not show protocol warning for empty interfaces, link to physical settings instead
This commit is contained in:
parent
ec92cd0aea
commit
86e17aa657
1 changed files with 8 additions and 2 deletions
|
@ -8,8 +8,6 @@ You may obtain a copy of the License at
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
$Id$
|
|
||||||
|
|
||||||
-%>
|
-%>
|
||||||
|
|
||||||
<%-
|
<%-
|
||||||
|
@ -164,6 +162,14 @@ $Id$
|
||||||
|
|
||||||
d.innerHTML = html;
|
d.innerHTML = html;
|
||||||
}
|
}
|
||||||
|
else if (d && !ifc.ifname)
|
||||||
|
{
|
||||||
|
d.innerHTML = String.format(
|
||||||
|
'<em><%:Network without interfaces.%></em><br />' +
|
||||||
|
'<a href="<%=luci.dispatcher.build_url("admin/network/network/%s")%>?tab.network.%s=physical"><%:Assign interfaces...%></a>',
|
||||||
|
ifc.name, ifc.name
|
||||||
|
);
|
||||||
|
}
|
||||||
else if (d && !ifc.proto)
|
else if (d && !ifc.proto)
|
||||||
{
|
{
|
||||||
var e = document.getElementById(ifc.id + '-ifc-edit');
|
var e = document.getElementById(ifc.id + '-ifc-edit');
|
||||||
|
|
Loading…
Reference in a new issue