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 123e8e1..d1e34d1 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 )