pari: trunk r157 - in /trunk/config: home.html queues.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Fri Dec 8 11:23:29 MST 2006


Author: pari
Date: Fri Dec  8 12:23:29 2006
New Revision: 157

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=157
Log:
Bug Fix: Queue Extnesion is not being deleted in extensions.conf

Modified:
    trunk/config/home.html
    trunk/config/queues.html

Modified: trunk/config/home.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/home.html?view=diff&rev=157&r1=156&r2=157
==============================================================================
--- trunk/config/home.html (original)
+++ trunk/config/home.html Fri Dec  8 12:23:29 2006
@@ -55,6 +55,11 @@
 			window.location.href="options.html";
 			return;
 		}
+		// parse extensions.conf 
+		//if(!asterisk_guitools  || !correct version || !hasSetup ){
+				// redirect to setup
+		//}
+
 		parent.setLoggedOn(1);
 		parent.loggedon = 1;
 		localloggedon = 1;
@@ -63,6 +68,13 @@
 		parent.document.getElementById('logoutlink').innerHTML = "Logout";
 		parent.document.getElementById('logoutlink').onclick = parent.Logoff ;
 		parent.astmanEngine.pollEvents();
+
+		if(navigator.appName.match("Microsoft")){
+			alert("Asterisk Configuration GUI is currently not supported in Microsoft Internet Explorer \n"+
+			"It is recommended that you use Firefox (1.5 or above) or Opera 9.x \n\n" +
+			"Support for Microsoft Internet Explorer is under development \n"+
+			" and will be supported in future versions");
+		}
 	}
 	
 	function loggedOff() {

Modified: trunk/config/queues.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/queues.html?view=diff&rev=157&r1=156&r2=157
==============================================================================
--- trunk/config/queues.html (original)
+++ trunk/config/queues.html Fri Dec  8 12:23:29 2006
@@ -93,6 +93,23 @@
 	tmp0 = new Ajax.Request('../../rawman', opt0);
 }
 
+function delete_extension(a){
+	// delete extension 'a' in extensions.conf 
+	var opt0 = {
+				method: 'get',
+				asynchronous: true,
+				onSuccess: function() { 
+					return true;	
+				},
+				onFailure: function(t) {
+					alert("Config Error: " + t.status + ": " + t.statusText);
+					return false;
+				}
+	};
+	uri0 = build_action('delete', 0, specialcontext ,'exten', '',a+',1,Queue(${EXTEN})'); 
+	opt0.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri0;
+	tmp0 = new Ajax.Request('../../rawman', opt0);
+}
 
 function save_queue(){
 		var p = 0;
@@ -278,8 +295,9 @@
 
 
 // Queue Call Backs
-queuecallbacks.oncategorydelete = function(){
+queuecallbacks.oncategorydelete = function(value){
 	$('testmulti').innerHTML = "";
+	delete_extension(value);
 }
 
 



More information about the asterisk-gui-commits mailing list