libs/web: implement "network" cbi datatype

This commit is contained in:
Jo-Philipp Wich 2011-12-16 01:18:15 +00:00
parent 286a822e7f
commit cdcfb5502b

View file

@ -159,6 +159,11 @@ var cbi_validators = {
return false;
},
'network': function(v)
{
return cbi_validators.uciname(v) || cbi_validators.host(v);
},
'wpakey': function(v)
{
if( v.length == 64 )