mirror of https://git.openwrt.org/project/luci.git
luci-mod-network: widgets shall show devices that are online as online
follow-up to 832680bb84
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
parent
1f50dea160
commit
f17ae7fd96
|
@ -360,7 +360,7 @@ var CBINetworkSelect = form.ListValue.extend({
|
||||||
for (var j = 0; j < devices.length && devices[j]; j++) {
|
for (var j = 0; j < devices.length && devices[j]; j++) {
|
||||||
span.appendChild(E('img', {
|
span.appendChild(E('img', {
|
||||||
'title': devices[j].getI18n(),
|
'title': devices[j].getI18n(),
|
||||||
'src': L.resource('icons/%s%s.png'.format(devices[j].getType(), devices[j].isUp() ? '' : '_disabled'))
|
'src': L.resource('icons/%s%s.png'.format(devices[j].getType(), network.isUp() ? '' : '_disabled'))
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue