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: http://git.lede-project.org./?a=commitdiff_plain;h=cdcfb5502be8fd07bcf26d5cac8ac8c5d14ba209;p=project%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 123e8e1aba..d1e34d1786 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 )