espiceland: branch 2.0 r5111 - /branches/2.0/config/js/users.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Fri Oct 29 08:48:18 CDT 2010
Author: espiceland
Date: Fri Oct 29 08:48:12 2010
New Revision: 5111
URL: http://svnview.digium.com/svn/asterisk-gui?view=rev&rev=5111
Log:
Allow -() in addition to digits in the caller ID number field.
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=5111&r1=5110&r2=5111
==============================================================================
--- branches/2.0/config/js/users.js (original)
+++ branches/2.0/config/js/users.js Fri Oct 29 08:48:12 2010
@@ -426,7 +426,7 @@
ASTGUI.highlightField('edit_OutBoundCallerid', "Too many digits in OutBound CallerId");
return;
}
- if(/\D/.test(tmp)){
+ if(/[^\d-\(\)]/.test(tmp)){
ASTGUI.highlightField('edit_OutBoundCallerid', "Please use numeric characters only.");
return;
}
More information about the asterisk-gui-commits
mailing list