pari: trunk r143 - /trunk/config/queues.html
    asterisk-gui-commits at lists.digium.com 
    asterisk-gui-commits at lists.digium.com
       
    Fri Dec  1 13:24:33 MST 2006
    
    
  
Author: pari
Date: Fri Dec  1 14:24:33 2006
New Revision: 143
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=143
Log:
tweak: Populate call queue extension with next available extension number
Modified:
    trunk/config/queues.html
Modified: trunk/config/queues.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/queues.html?view=diff&rev=143&r1=142&r2=143
==============================================================================
--- trunk/config/queues.html (original)
+++ trunk/config/queues.html Fri Dec  1 14:24:33 2006
@@ -40,6 +40,7 @@
 var j = -1; 
 var extensions_conf_qs = new Array;
 var localextenlength ;
+var userbase;
 
 function togglefeatures() {
 	if (adstatus == "shown") {
@@ -264,6 +265,7 @@
 callbacks.format = function (t,x){
 		if ((t.name == 'general')){
 			if ( t.fieldbyname['localextenlength'] && t.fieldbyname['localextenlength'].length){ localextenlength =  t.fieldbyname['localextenlength'] ; }
+			if ( t.fieldbyname['userbase'] && t.fieldbyname['userbase'].length){ userbase =  t.fieldbyname['userbase'] ; }
 			return null;
 		}
 		if (t.name.substring(0,6) == 'trunk_')
@@ -336,7 +338,8 @@
 		var tmp = null;
 		$('save_q').disabled=false;
 		if ($('queues').stored_config.catbyname['general']){ tmp = objcopy($('queues').stored_config.catbyname['general']);	}
-		tmp.name="";
+		tmp.name = first_free_exten($('queues'), userbase);
+
 		$('testmulti').innerHTML ="";
 		for (k=0;k< $('agents').length ;k++ ){
 				selectedagent = "selectedagent" + k;
    
    
More information about the asterisk-gui-commits
mailing list