rbrindley: branch rbrindley/welcome_revamp r4318 - /team/rbrindley/welcome_re...

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Dec 9 09:54:49 CST 2008


Author: rbrindley
Date: Tue Dec  9 09:54:48 2008
New Revision: 4318

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=4318
Log:
- removeQueueCall now updates call position after removal

Modified:
    team/rbrindley/welcome_revamp/config/js/welcome2.js

Modified: team/rbrindley/welcome_revamp/config/js/welcome2.js
URL: http://svn.digium.com/view/asterisk-gui/team/rbrindley/welcome_revamp/config/js/welcome2.js?view=diff&rev=4318&r1=4317&r2=4318
==============================================================================
--- team/rbrindley/welcome_revamp/config/js/welcome2.js (original)
+++ team/rbrindley/welcome_revamp/config/js/welcome2.js Tue Dec  9 09:54:48 2008
@@ -764,8 +764,14 @@
 manager_events.removeQueueCall = function (queue, exten) {
 	var calls_tbody = $('#queue_'+queue.toString()+' .calls > .list > tbody');
 	var calls;
+	var call_cnt = 1;
 
 	$('#'+queue.toString()+'_call_'+exten.toString()).remove();
+
+	calls_tbody.children('tr').each( function() {
+		$(this).children('td:first').html(call_cnt+'. ');
+		call_cnt++;
+	}); 
 
 	if ( (calls = calls_tbody.children('tr').length) == 0) {
 		calls_tbody.append(




More information about the asterisk-gui-commits mailing list