pari: trunk r915 - /trunk/config/menus.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Thu May 10 16:19:34 MST 2007


Author: pari
Date: Thu May 10 18:19:33 2007
New Revision: 915

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=915
Log:
adding option to 'goto the default Directory' in IVR

Modified:
    trunk/config/menus.html

Modified: trunk/config/menus.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/menus.html?view=diff&rev=915&r1=914&r2=915
==============================================================================
--- trunk/config/menus.html (original)
+++ trunk/config/menus.html Thu May 10 18:19:33 2007
@@ -114,6 +114,9 @@
 	if( temp[2].match("Hangup") )
 		return "Hangup";
 
+	if( temp[2].match("Directory") && temp[2].match("default"))
+		return "Goto Directory";
+
  return this_step;
 }
 
@@ -283,7 +286,7 @@
 		return;
 	}
 
-	if( _nsa.value != "Answer" &&   _nsa.value != "Hangup" && !_nsv .value ){
+	if( _nsa.value != "Answer" && _nsa.value != "GotoDirecotry" && _nsa.value != "Hangup" && !_nsv .value ){
 		gui_alert("Please enter a value for '" + _nsa.value +"'");
 		_nsv.focus();
 		return;
@@ -382,6 +385,9 @@
 	case 'Hangup':
 		action_string = "s,"+ newpriority+ ",Hangup";
 		break;
+	case 'GotoDirecotry':
+		action_string = "s,"+ newpriority+ ",Directory(default)";
+		break;
 	default : 
 		action_string = "s,undefined,undefined"; 
 	}
@@ -700,7 +706,7 @@
 	_anm.style.display = "none";
 	_$('tbr').style.display = "none";
 
-        if( _nsa.value== "" || _nsa.value== "Answer"  || _nsa.value== "Hangup"  ){
+        if( _nsa.value== "" || _nsa.value== "Answer"  || _nsa.value== "Hangup" || _nsa.value== "GotoDirecotry" ){
 
         }else if( _nsa.value== "Background"  || _nsa.value== "Playback" ){
                 _nsv.style.display = "";
@@ -1189,6 +1195,7 @@
 					<option value="Wait">Wait</option>
 					<option value="WaitExten">WaitExten</option>
 					<option value="GotoMenu">Goto Menu</option>
+					<option value="GotoDirecotry">Goto Directory</option>
 					<option value="GotoExtension">Goto Extension</option>
 					<option value="GotoTimeBasedRule">Goto TimeBasedRule</option>
 					<option value="Hangup">Hangup</option>



More information about the asterisk-gui-commits mailing list