luci-base: widgets.js: CBINetworkSelect: honour exclude option
authorJo-Philipp Wich <jo@mein.io>
Fri, 16 Aug 2019 07:49:11 +0000 (09:49 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 16 Aug 2019 07:49:11 +0000 (09:49 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/tools/widgets.js

index 2da9e7435ffaa7fd05f347332471e7b5b92a0b24..861d8c8cea51461d30e515c0cc1ac7f336f95158 100644 (file)
@@ -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())