espiceland: branch 2.0 r5072 - /branches/2.0/config/js/users.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Thu Aug 26 12:17:34 CDT 2010
Author: espiceland
Date: Thu Aug 26 12:17:30 2010
New Revision: 5072
URL: http://svnview.digium.com/svn/asterisk-gui?view=rev&rev=5072
Log:
Adding numerics-only patch to open source branch.
Modified:
branches/2.0/config/js/users.js
Modified: branches/2.0/config/js/users.js
URL: http://svnview.digium.com/svn/asterisk-gui/branches/2.0/config/js/users.js?view=diff&rev=5072&r1=5071&r2=5072
==============================================================================
--- branches/2.0/config/js/users.js (original)
+++ branches/2.0/config/js/users.js Thu Aug 26 12:17:30 2010
@@ -418,6 +418,10 @@
}
if( tmp && tmp.length > 19 ){
ASTGUI.highlightField('edit_OutBoundCallerid', "Too many digits in OutBound CallerId");
+ return;
+ }
+ if(/\D/.test(tmp)){
+ ASTGUI.highlightField('edit_OutBoundCallerid', "Please use numeric characters only.");
return;
}
tmp = '';
More information about the asterisk-gui-commits
mailing list