rbrindley: branch 2.0 r4510 - /branches/2.0/config/js/incoming.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Feb 11 13:35:40 CST 2009


Author: rbrindley
Date: Wed Feb 11 13:35:40 2009
New Revision: 4510

URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4510
Log:
- changed all '|'s to ','s in incoming.js

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

Modified: branches/2.0/config/js/incoming.js
URL: http://svn.digium.com/svn-view/asterisk-gui/branches/2.0/config/js/incoming.js?view=diff&rev=4510&r1=4509&r2=4510
==============================================================================
--- branches/2.0/config/js/incoming.js (original)
+++ branches/2.0/config/js/incoming.js Wed Feb 11 13:35:40 2009
@@ -68,7 +68,7 @@
 		ASTGUI.updateFieldToValue( 'edit_itrl_pattern', ASTGUI.parseContextLine.getExten( EDIT_CONTEXT_IR_LINE ) );
 
 		$('.localext_byDid').hide();
-		if( EDIT_CONTEXT_IR_LINE.contains(',1,Goto(default|${EXTEN') ){
+		if( EDIT_CONTEXT_IR_LINE.contains(',1,Goto(default,${EXTEN') ){
 			$('.localext_byDid').show();
 			ASTGUI.updateFieldToValue( 'edit_itrl_dest', 'ByDID' );
 			var tmp_ldp = EDIT_CONTEXT_IR_LINE.betweenXY('{','}').lChop('EXTEN').lChop(':') ;
@@ -182,7 +182,7 @@
 
 				// If is a TimeInterval Context
 				if( did_this_rule.beginsWith( 'include=' ) && did_this_rule.contains( '_' + ASTGUI.contexts.TimeIntervalPrefix ) ){
-					var THIS_TRUNK_TIMEFRAME_CONTEXT = did_this_rule.betweenXY('=', '|');
+					var THIS_TRUNK_TIMEFRAME_CONTEXT = did_this_rule.betweenXY('=', ',');
 					var THIS_TIMEFRAME = THIS_TRUNK_TIMEFRAME_CONTEXT.lChop( ASTGUI.contexts.TrunkDIDPrefix + this_trunk + '_' + ASTGUI.contexts.TimeIntervalPrefix );
 					if( ! EX_CF.hasOwnProperty( THIS_TRUNK_TIMEFRAME_CONTEXT ) ){ return ; }
 
@@ -363,7 +363,7 @@
 
 			if( ASTGUI.getFieldValue('edit_itrl_dest') == 'ByDID' ){
 				var tmp_didXdigits = ASTGUI.getFieldValue('edit_itrl_LocalDest_Pattern') || '0' ;
-				var this_ActualRule = TMP_NEW_PATTERN + ',1,Goto(default|${EXTEN:'+  tmp_didXdigits + '}|1)';
+				var this_ActualRule = TMP_NEW_PATTERN + ',1,Goto(default,${EXTEN:'+  tmp_didXdigits + '},1)';
 			}else{
 				var this_ActualRule = TMP_NEW_PATTERN + ',1,' + ASTGUI.getFieldValue('edit_itrl_dest') ;
 			}
@@ -373,7 +373,7 @@
 
 			if( this_tiName ){ // if 'new Incoming Rule' & a Time Interval is chosen
 				var thisRule_context = ASTGUI.contexts.TrunkDIDPrefix + this_trunk + '_' + ASTGUI.contexts.TimeIntervalPrefix + this_tiName ;
-				var NEWTF_INCLUDE_STR = 'include=' + thisRule_context + '|${' + ASTGUI.contexts.TimeIntervalPrefix + this_tiName + '}' ;
+				var NEWTF_INCLUDE_STR = 'include=' + thisRule_context + ',${' + ASTGUI.contexts.TimeIntervalPrefix + this_tiName + '}' ;
 
 				if( EX_CF.hasOwnProperty(thisRule_context) && EX_CF[thisRule_context].indexOfLike('exten=' + TMP_NEW_PATTERN + ',') != -1 ){
 					parent.ASTGUI.dialog.hide();
@@ -477,7 +477,7 @@
 
 			if( ASTGUI.getFieldValue('edit_itrl_dest') == 'ByDID' ){
 				var tmp_didXdigits = ASTGUI.getFieldValue('edit_itrl_LocalDest_Pattern') || '0' ;
-				var this_ActualRule = ASTGUI.getFieldValue('edit_itrl_pattern') + ',' + pp  + ',Goto(default|${EXTEN:'+ tmp_didXdigits + '}|1)';
+				var this_ActualRule = ASTGUI.getFieldValue('edit_itrl_pattern') + ',' + pp  + ',Goto(default,${EXTEN:'+ tmp_didXdigits + '},1)';
 			}else{
 				var this_ActualRule = ASTGUI.getFieldValue('edit_itrl_pattern') + ',' + pp  + ',' + ASTGUI.getFieldValue('edit_itrl_dest') ;
 			}




More information about the asterisk-gui-commits mailing list