diff options
Diffstat (limited to 'applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js')
-rw-r--r-- | applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js b/applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js index 6785d1ca6..198528aaa 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js @@ -211,6 +211,15 @@ return L.Class.extend({ return rv; }, + fmt_family: function(family) { + if (family == 'ipv4') + return _('IPv4'); + else if (family == 'ipv6') + return _('IPv6'); + else + return _('IPv4 and IPv6'); + }, + fmt_proto: function(x, icmp_types) { var rv = E([]), l = L.toArray(x); |