pari: trunk r1277 - in /trunk/config: menus.html scripts/astman.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Jul 31 10:53:32 CDT 2007


Author: pari
Date: Tue Jul 31 10:53:32 2007
New Revision: 1277

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1277
Log:
Fix: Allow proper handling of 'Operator Extension' in voicemenus
http://bugs.digium.com/view.php?id=8877




Modified:
    trunk/config/menus.html
    trunk/config/scripts/astman.js

Modified: trunk/config/menus.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/menus.html?view=diff&rev=1277&r1=1276&r2=1277
==============================================================================
--- trunk/config/menus.html (original)
+++ trunk/config/menus.html Tue Jul 31 10:53:32 2007
@@ -123,6 +123,7 @@
 	if( temp[2].match("Goto") && !temp[2].match("voicemenu-")  ){
 		var tmp = temp[2].split('(');
 		var tmp1 = tmp[1].split('|');
+		if( tmp1[1] == 'o' ){return "Goto 'Operator'";}
 		return "Goto Exten '"+ tmp1[1] + "'";
 	}
 	
@@ -148,6 +149,7 @@
 		var newoption = document.createElement("option"); 
 		newoption.text = extensions_array[x] ; 
 		newoption.value = extensions_array[x] ;
+		if(extensions_array[x] == 'o'){ newoption.text = "Operator" ; }
 		_mo.options.add(newoption);
 	}
 }

Modified: trunk/config/scripts/astman.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/astman.js?view=diff&rev=1277&r1=1276&r2=1277
==============================================================================
--- trunk/config/scripts/astman.js (original)
+++ trunk/config/scripts/astman.js Tue Jul 31 10:53:32 2007
@@ -1936,6 +1936,10 @@
 		t.subfields[x]['args'] = args;
 		t.subfields[x]['priority'] = priority;
 
+		if(t.subfields[x]['name'] == 'o'){
+			label = "Operator";
+			t.subfields[x]['label'] = label;
+		}
 		if( app.toLowerCase() == "goto" && args.match("voicemenu-custom-") ){
 			label = "Voice Menu";
 			t.subfields[x]['label'] = label;




More information about the asterisk-gui-commits mailing list