summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-base/htdocs/luci-static')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/firewall.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/firewall.js b/modules/luci-base/htdocs/luci-static/resources/firewall.js
index 8f6be1813d..eaab3bb9f0 100644
--- a/modules/luci-base/htdocs/luci-static/resources/firewall.js
+++ b/modules/luci-base/htdocs/luci-static/resources/firewall.js
@@ -362,13 +362,13 @@ Zone = AbstractFirewallItem.extend({
if (newNetworks.length > 0)
this.set('network', newNetworks.join(' '));
else
- this.set('network', ' ');
+ this.set('network', null);
return (newNetworks.length < oldNetworks.length);
},
getNetworks: function() {
- return L.toArray(this.get('network') || this.get('name'));
+ return L.toArray(this.get('network'));
},
clearNetworks: function() {