diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-12-16 01:18:15 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-12-16 01:18:15 +0000 |
commit | cdcfb5502be8fd07bcf26d5cac8ac8c5d14ba209 (patch) | |
tree | 408fc85cb8d4794491044eb279769c356e3d87cc /libs/web | |
parent | 286a822e7f9aaebb95fd443b798db45ed0a11240 (diff) |
libs/web: implement "network" cbi datatype
Diffstat (limited to 'libs/web')
-rw-r--r-- | libs/web/htdocs/luci-static/resources/cbi.js | 5 |
1 files changed, 5 insertions, 0 deletions
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 ) |