From 24aa675a4638751c50b2fe25c31d28c866c638e7 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 16 Aug 2019 09:49:11 +0200 Subject: [PATCH] luci-base: widgets.js: CBINetworkSelect: honour exclude option 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 2da9e7435..861d8c8ce 100644 --- a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js +++ b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js @@ -358,7 +358,7 @@ var CBINetworkSelect = form.ListValue.extend({ var network = this.networks[i], name = network.getName(); - if (name == 'loopback' || !this.filter(section_id, name)) + if (name == 'loopback' || name == this.exclude || !this.filter(section_id, name)) continue; if (this.novirtual && network.isVirtual()) -- 2.25.1