From 34e73fd983a49e38155a39c2392779cbd6abb67f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 11 Sep 2019 12:44:34 +0200 Subject: [PATCH] luci-base: widgets.js: fix display quirk in tools.widgets.DeviceSelect Signed-off-by: Jo-Philipp Wich --- modules/luci-base/htdocs/luci-static/resources/tools/widgets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1