rbrindley: branch 2.0 r4823 - /branches/2.0/config/js/hardware_dahdi.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Jun 2 13:35:24 CDT 2009


Author: rbrindley
Date: Tue Jun  2 13:35:21 2009
New Revision: 4823

URL: http://svn.asterisk.org/svn-view/asterisk-gui?view=rev&rev=4823
Log:

- fixed an issue where the hardware dahdi page improperly defined E1 spans


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

Modified: branches/2.0/config/js/hardware_dahdi.js
URL: http://svn.asterisk.org/svn-view/asterisk-gui/branches/2.0/config/js/hardware_dahdi.js?view=diff&rev=4823&r1=4822&r2=4823
==============================================================================
--- branches/2.0/config/js/hardware_dahdi.js (original)
+++ branches/2.0/config/js/hardware_dahdi.js Tue Jun  2 13:35:21 2009
@@ -240,12 +240,12 @@
 
 	if ( Number(SPANS[l]['totchans']) == 31 ){
 		ASTGUI.selectbox.append(_$('editspan_fac'),'CCS/HDB3', 'CCS/HDB3');
-		ASTGUI.selectbox.append(_$('editspan_fac'),'CCS/CRC4/HDB3', 'CCS/CRC4/HDB3');
+		ASTGUI.selectbox.append(_$('editspan_fac'),'CCS/HDB3/CRC4', 'CCS/HDB3/CRC4');
 	}
 
 	if(SPANS[l]['framing'] && SPANS[l]['coding']) {
 		if( SPANS[l]['framing'] == 'CCS/CRC4' ){
-			ASTGUI.selectbox.selectOption( _$('editspan_fac') , 'CCS/CRC4/HDB3' );
+			ASTGUI.selectbox.selectOption( _$('editspan_fac') , 'CCS/HDB3/CRC4' );
 		}else{
 			ASTGUI.selectbox.selectOption( _$('editspan_fac') , SPANS[l]['framing'] + '/' + SPANS[l]['coding'] );
 		}
@@ -668,7 +668,7 @@
 	}
 
 	var b = String(CURRENT_SPAN);
-	if( _$('editspan_fac').value == 'CCS/CRC4/HDB3' ){
+	if( _$('editspan_fac').value == 'CCS/HDB3/CRC4' ){
 		SPANS[b]['framing'] = 'CCS/CRC4';
 		SPANS[b]['coding'] = 'HDB3';
 	}else{
@@ -975,7 +975,7 @@
 			firstpart = "span";
 			/* XXX Timing source for card is being set to zero? */
 			/* LBO is being set to 0 */
-			SPANS[k]['fac'] = SPANS[k]['framing'] + '/' + SPANS[k]['coding'];
+			SPANS[k]['fac'] = SPANS[k]['framing'] + ',' + SPANS[k]['coding'];
 			if(SPANS[k]['lbo'] == "") { SPANS[k]['lbo'] = 0; }
 			if(SPANS[k]['syncsrc'] == "") { SPANS[k]['syncsrc'] = 1; }
 			secondpart = k + "," + SPANS[k]['syncsrc']  + "," + SPANS[k]['lbo'] + "," + SPANS[k]['fac'].toLowerCase().replace("/", ",");




More information about the asterisk-gui-commits mailing list