rbrindley: branch 2.0 r4747 - /branches/2.0/config/js/astman.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Apr 21 07:58:19 CDT 2009


Author: rbrindley
Date: Tue Apr 21 07:58:13 2009
New Revision: 4747

URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4747
Log:

- whitespace changes


Modified:
    branches/2.0/config/js/astman.js

Modified: branches/2.0/config/js/astman.js
URL: http://svn.digium.com/svn-view/asterisk-gui/branches/2.0/config/js/astman.js?view=diff&rev=4747&r1=4746&r2=4747
==============================================================================
--- branches/2.0/config/js/astman.js (original)
+++ branches/2.0/config/js/astman.js Tue Apr 21 07:58:13 2009
@@ -1617,11 +1617,13 @@
 			// use this when you want to get the pattern from a calling rule
 			// expects q as 'exten=_X.,1,foo' or '_X.,1,foo'
 			//	and returns _X.
-			if (typeof q != 'string') return '';
-			if( !q || !q.contains(',') ) { return ''; }
+			if (typeof q != 'string') {
+				return '';
+			}
+
 			if( q.match('exten=') ){
 				return q.split('exten=')[1].split(',')[0];
-			}else{
+			} else {
 				return q.split(',')[0];
 			}
 		},




More information about the asterisk-gui-commits mailing list