modules/admin-full: fix status reporting of inactive virtual interfaces

This commit is contained in:
Jo-Philipp Wich 2011-10-09 22:36:13 +00:00
parent 9e8de5189d
commit 21b2f45d02

View file

@ -14,11 +14,11 @@
'<img src="<%=resource%>/icons/%s%s.png" style="width:16px; height:16px" />' + '<img src="<%=resource%>/icons/%s%s.png" style="width:16px; height:16px" />' +
'<br /><small>%s</small>', '<br /><small>%s</small>',
ifc.type, ifc.is_up ? '' : '_disabled', ifc.type, ifc.is_up ? '' : '_disabled',
ifc.is_up ? ifc.ifname : '?' ifc.name
); );
var d = document.getElementById('<%=self.option%>-ifc-description'); var d = document.getElementById('<%=self.option%>-ifc-description');
if (d && ifc.ifname && ifc.macaddr != '00:00:00:00:00:00') if (d && ifc.ifname)
{ {
if (ifc.is_up) if (ifc.is_up)
{ {