projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
286a822
)
libs/web: implement "network" cbi datatype
author
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 16 Dec 2011 01:18:15 +0000
(
01:18
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 16 Dec 2011 01:18:15 +0000
(
01:18
+0000)
libs/web/htdocs/luci-static/resources/cbi.js
patch
|
blob
|
history
diff --git
a/libs/web/htdocs/luci-static/resources/cbi.js
b/libs/web/htdocs/luci-static/resources/cbi.js
index 123e8e1aba77f293107aff30acb2688c5759d929..d1e34d1786035b24489d96a0c3f12e1408bc923b 100644
(file)
--- 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 )