summaryrefslogtreecommitdiffhomepage
path: root/libs/web/htdocs/luci-static/resources/cbi.js
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-02-14 15:16:53 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-02-14 15:16:53 +0000
commit63a75c6ea924120273f27a297fae4978ab81d83f (patch)
tree0d9d7975818a5039c37578867c317eaf7649d8d0 /libs/web/htdocs/luci-static/resources/cbi.js
parentcd4e008cc1536f77d3b879ff9e56b74ce70c828a (diff)
libs/web: implement new phone digit datatype, useful for VoIP related config screens
Diffstat (limited to 'libs/web/htdocs/luci-static/resources/cbi.js')
-rw-r--r--libs/web/htdocs/luci-static/resources/cbi.js4
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);
}
};