libs/web: implement "network" cbi datatype
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 16 Dec 2011 01:18:15 +0000 (01:18 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 16 Dec 2011 01:18:15 +0000 (01:18 +0000)
libs/web/htdocs/luci-static/resources/cbi.js

index 123e8e1aba77f293107aff30acb2688c5759d929..d1e34d1786035b24489d96a0c3f12e1408bc923b 100644 (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 )