From: Jo-Philipp Wich Date: Wed, 11 Sep 2019 10:44:34 +0000 (+0200) Subject: luci-base: widgets.js: fix display quirk in tools.widgets.DeviceSelect X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=34e73fd983a49e38155a39c2392779cbd6abb67f;p=oweals%2Fluci.git luci-base: widgets.js: fix display quirk in tools.widgets.DeviceSelect Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js index 861d8c8ce..1667fa670 100644 --- a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js +++ b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js @@ -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);