bkruse: branch 1.4 r1556 - /branches/1.4/config/menus.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Sun Sep 9 03:44:17 CDT 2007


Author: bkruse
Date: Sun Sep  9 03:44:15 2007
New Revision: 1556

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1556
Log:
Fixed a couple of bugs with the default
context include (once you delete a rule,
then try to highlight one, the context is
not found, and therefore errors our)
(closes issue #10525)
Thank you quitespy for sticking with me
through this, and providing feedback!
It really works now :]

Modified:
    branches/1.4/config/menus.html

Modified: branches/1.4/config/menus.html
URL: http://svn.digium.com/view/asterisk-gui/branches/1.4/config/menus.html?view=diff&rev=1556&r1=1555&r2=1556
==============================================================================
--- branches/1.4/config/menus.html (original)
+++ branches/1.4/config/menus.html Sun Sep  9 03:44:15 2007
@@ -283,6 +283,7 @@
 	var _vmv = _$('vmenus').value ;
 	var _nsa = _$('newstep_action');
 	var _nsv = _$('newstep_var') ;
+	var _combo_sel = _$('combosel_sounds');
 
 	if( !_nsa.value ){
 		gui_alert("Please select an action for this step");
@@ -290,7 +291,7 @@
 		return;
 	}
 
-	if( _nsa.value != "Answer" && _nsa.value != "GotoDirecotry" && _nsa.value != "Busy" && _nsa.value != "Hangup" && _nsa.value != "Congestion" && !_nsv.value ){
+	if( _nsa.value != "Answer" && _nsa.value != "GotoDirecotry" && _nsa.value != "Busy" && _nsa.value != "Hangup" && _nsa.value != "Congestion" && _nsa.value != "Background" && _nsa.value != "Playback" && !_nsv.value ){
 		
 		if( _nsa.value.toLowerCase() == "dialringgroup" ){
 			if(!_$('rgrp').options.length ){
@@ -330,7 +331,7 @@
 		action_string = "s,"+ newpriority+ ",DISA(" + _nsv.value + ")";
 		break;
 	case 'Background':
-		action_string = "s,"+ newpriority+ ",Background(" + _nsv.value + ")";
+		action_string = "s,"+ newpriority+ ",Background(" + _combo_sel.value + ")";
 		break;
 	case 'Busy':
 		action_string = "s,"+ newpriority+ ",Busy";
@@ -345,7 +346,7 @@
 		action_string = "s,"+ newpriority+ ",Set(TIMEOUT(response)=" + _nsv.value + ")";
 		break;
 	case 'Playback':
-		action_string = "s,"+ newpriority+ ",Playback(" + _nsv.value + ")";
+		action_string = "s,"+ newpriority+ ",Playback(" + _combo_sel.value + ")";
 		break;
 	case 'Wait':
 		action_string = "s,"+ newpriority+ ",Wait(" + _nsv.value + ")";
@@ -745,8 +746,13 @@
 	current_context = _$('vmenus').value;
 	var x, y, tmp;
 	var priority_1, priority_2, buffer;
-	
-	_$('allowexten').checked = (voicemenusdata[current_context].include == "default") ? true : false ;
+
+	if(voicemenusdata[current_context]) {	
+		_$('allowexten').checked = (voicemenusdata[current_context].include == "default") ? true : false ;
+	} else {
+		_$('allowexten').checked = false;
+	}
+		
  	//$('keypressoptions').innerHTML = "";
 	_steps.options.length =0;
 	_$('comment').value = voicemenusdata[current_context].comment;




More information about the asterisk-gui-commits mailing list