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:
Jo-Philipp Wich 2019-09-11 12:44:34 +02:00
parent c96de72043
commit 34e73fd983

View file

@ -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);