projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libs/web: remove neg_ipaddr, neg_ip4addr and neg_network_ip4addr datatypes, can be...
[project/luci.git]
/
libs
/
web
/
htdocs
/
luci-static
/
resources
/
cbi.js
diff --git
a/libs/web/htdocs/luci-static/resources/cbi.js
b/libs/web/htdocs/luci-static/resources/cbi.js
index
b21adbb
..
05e15d2
100644
(file)
--- a/
libs/web/htdocs/luci-static/resources/cbi.js
+++ b/
libs/web/htdocs/luci-static/resources/cbi.js
@@
-42,11
+42,6
@@
var cbi_validators = {
return cbi_validators.ip4addr(v) || cbi_validators.ip6addr(v);
},
return cbi_validators.ip4addr(v) || cbi_validators.ip6addr(v);
},
- 'neg_ipaddr': function(v)
- {
- return cbi_validators.ip4addr(v.replace(/^\s*!/, "")) || cbi_validators.ip6addr(v.replace(/^\s*!/, ""));
- },
-
'ip4addr': function(v)
{
if (v.match(/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})(\/(\S+))?$/))
'ip4addr': function(v)
{
if (v.match(/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})(\/(\S+))?$/))
@@
-64,11
+59,6
@@
var cbi_validators = {
return false;
},
return false;
},
- 'neg_ip4addr': function(v)
- {
- return cbi_validators.ip4addr(v.replace(/^\s*!/, ""));
- },
-
'ip6addr': function(v)
{
if( v.match(/^([a-fA-F0-9:.]+)(\/(\d+))?$/) )
'ip6addr': function(v)
{
if( v.match(/^([a-fA-F0-9:.]+)(\/(\d+))?$/) )
@@
-191,12
+181,6
@@
var cbi_validators = {
return (v.match(/^[a-zA-Z0-9_]+$/) != null);
},
return (v.match(/^[a-zA-Z0-9_]+$/) != null);
},
- 'neg_network_ip4addr': function(v)
- {
- v = v.replace(/^\s*!/, "");
- return cbi_validators.uciname(v) || cbi_validators.ip4addr(v);
- },
-
'range': function(v, args)
{
var min = parseInt(args[0]);
'range': function(v, args)
{
var min = parseInt(args[0]);