diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-07-22 16:29:42 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-07-22 16:29:42 +0200 |
commit | b63576bbe705a13015d1c87cca7bbd05eb558c52 (patch) | |
tree | 350899bcba9f6ea04f5583d25e886d39609cdc6f /modules/luci-base/htdocs/luci-static/resources/firewall.js | |
parent | e6ff0f39bbd1b8c74f07fdee78bb9c154d981f50 (diff) |
luci-base: firewall.js: add zone.getDevices() and zone.getSubnets() getters
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources/firewall.js')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/firewall.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/firewall.js b/modules/luci-base/htdocs/luci-static/resources/firewall.js index d034d6e010..9ae14e16d9 100644 --- a/modules/luci-base/htdocs/luci-static/resources/firewall.js +++ b/modules/luci-base/htdocs/luci-static/resources/firewall.js @@ -375,6 +375,14 @@ Zone = AbstractFirewallItem.extend({ this.set('network', ' '); }, + getDevices: function() { + return L.toArray(this.get('device')); + }, + + getSubnets: function() { + return L.toArray(this.get('subnet')); + }, + getForwardingsBy: function(what) { var sections = uci.sections('firewall', 'forwarding'), forwards = []; |