From: Jo-Philipp Wich Date: Fri, 16 Dec 2011 01:18:15 +0000 (+0000) Subject: libs/web: implement "network" cbi datatype X-Git-Tag: 0.11.0~1229 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cdcfb5502be8fd07bcf26d5cac8ac8c5d14ba209;p=oweals%2Fluci.git libs/web: implement "network" cbi datatype --- diff --git a/libs/web/htdocs/luci-static/resources/cbi.js b/libs/web/htdocs/luci-static/resources/cbi.js index 123e8e1ab..d1e34d178 100644 --- a/libs/web/htdocs/luci-static/resources/cbi.js +++ b/libs/web/htdocs/luci-static/resources/cbi.js @@ -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 )