luci-base: widgets.js: fix display quirk in tools.widgets.DeviceSelect
authorJo-Philipp Wich <jo@mein.io>
Wed, 11 Sep 2019 10:44:34 +0000 (12:44 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 11 Sep 2019 10:44:34 +0000 (12:44 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/tools/widgets.js

index 861d8c8cea51461d30e515c0cc1ac7f336f95158..1667fa670726d5f95719c385840320f6e85ef4e3 100644 (file)
@@ -478,7 +478,7 @@ var CBIDeviceSelect = form.ListValue.extend({
                        var networks = device.getNetworks();
 
                        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])
                                values.push(name);