diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-02-14 15:16:53 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-02-14 15:16:53 +0000 |
commit | 63a75c6ea924120273f27a297fae4978ab81d83f (patch) | |
tree | 0d9d7975818a5039c37578867c317eaf7649d8d0 /libs/web/htdocs | |
parent | cd4e008cc1536f77d3b879ff9e56b74ce70c828a (diff) |
libs/web: implement new phone digit datatype, useful for VoIP related config screens
Diffstat (limited to 'libs/web/htdocs')
-rw-r--r-- | libs/web/htdocs/luci-static/resources/cbi.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/web/htdocs/luci-static/resources/cbi.js b/libs/web/htdocs/luci-static/resources/cbi.js index 7171574ef1..8ced4419ae 100644 --- a/libs/web/htdocs/luci-static/resources/cbi.js +++ b/libs/web/htdocs/luci-static/resources/cbi.js @@ -269,6 +269,10 @@ var cbi_validators = { return false; return true; + }, + 'phonedigit': function() + { + return (this.match(/^[0-9\*#]+$/) != null); } }; |