espiceland: branch 2.0 r5112 - /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:57:40 CDT 2010


Author: espiceland
Date: Fri Oct 29 08:57:38 2010
New Revision: 5112

URL: http://svnview.digium.com/svn/asterisk-gui?view=rev&rev=5112
Log:
Have to allow spaces and +, too, in user caller ID 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=5112&r1=5111&r2=5112
==============================================================================
--- branches/2.0/config/js/users.js (original)
+++ branches/2.0/config/js/users.js Fri Oct 29 08:57:38 2010
@@ -3,7 +3,7 @@
  *
  * users.html functions
  *
- * Copyright (C) 2006-2008, Digium, Inc.
+ * Copyright (C) 2006-2010, Digium, Inc.
  *
  * Pari Nannapaneni <pari at digium.com>
  *
@@ -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