luci-app-firewall: allow negative prefix lengths
[project/luci.git] / applications / luci-app-firewall / htdocs / luci-static / resources / tools / firewall.js
index 7a04d26c9dc47b7bbb513035e81789f85a81aa57..ec6aa82cd1f1b62dc265eaf3cfcd8b0f3a334d6d 100644 (file)
@@ -444,7 +444,7 @@ return baseclass.extend({
                var o = s.taboption(tab, multiple ? this.CBIDynamicMultiValueList : form.Value, name, label, description);
 
                o.modalonly = true;
-               o.datatype = 'list(neg(ipmask))';
+               o.datatype = 'list(neg(ipmask("true")))';
                o.placeholder = multiple ? _('-- add IP --') : _('any');
 
                if (family != null) {