pari: branch 2.0 r4096 - /branches/2.0/config/welcome.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Nov 11 18:38:06 CST 2008


Author: pari
Date: Tue Nov 11 18:38:06 2008
New Revision: 4096

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=4096
Log:

 Option to manually refresh current state of all users.



Modified:
    branches/2.0/config/welcome.html

Modified: branches/2.0/config/welcome.html
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/welcome.html?view=diff&rev=4096&r1=4095&r2=4096
==============================================================================
--- branches/2.0/config/welcome.html (original)
+++ branches/2.0/config/welcome.html Tue Nov 11 18:38:06 2008
@@ -99,6 +99,14 @@
 		$.ajax({ type: 'GET', url: ASTGUI.paths.rawman, data: 'action=AgentCallbackLogin&Agent='+ agent +'&Exten='+ agent, success: function(){} });
 	});
 	return tmp_qlogout;
+};
+
+managerEvents.updateAllUsersStatus = function(){
+	var ul = parent.astgui_manageusers.listOfUsers();
+	ul.each(function(user){
+		var new_status = ASTGUI.getUser_DeviceStatus(user) ;
+		managerEvents.updateUserImage(user, new_status);
+	});
 };
 
 managerEvents.updateUserImage = function(user , user_status){
@@ -307,7 +315,7 @@
 	(function(){ // add first row
 		var newRow = DOM_table_Ext_list.insertRow(-1);
 		newRow.className = "frow";
-		addCell( newRow , { html:'', width:'18px'} );
+		addCell( newRow , { html: "<A href='#' onclick=\"managerEvents.updateAllUsersStatus();\"><img src='images/refresh.png' title=' Refresh ' border=0></A>" , width:'18px' });
 		addCell( newRow , { html:'Extension' } );
 		addCell( newRow , { html:'Name/Label' } );
 		addCell( newRow , { html:'Status' } );




More information about the asterisk-gui-commits mailing list