luci-base: widgets.js: fix display quirk in tools.widgets.DeviceSelect
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
c96de72043
commit
34e73fd983
1 changed files with 1 additions and 1 deletions
|
@ -478,7 +478,7 @@ var CBIDeviceSelect = form.ListValue.extend({
|
||||||
var networks = device.getNetworks();
|
var networks = device.getNetworks();
|
||||||
|
|
||||||
if (networks.length > 0)
|
if (networks.length > 0)
|
||||||
L.dom.append(item.lastChild, [ ' (', networks.join(', '), ')' ]);
|
L.dom.append(item.lastChild, [ ' (', networks.map(function(n) { return n.getName() }).join(', '), ')' ]);
|
||||||
|
|
||||||
if (checked[name])
|
if (checked[name])
|
||||||
values.push(name);
|
values.push(name);
|
||||||
|
|
Loading…
Reference in a new issue