rbrindley: branch 2.0 r5052 - /branches/2.0/config/js/index.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Aug 18 14:53:52 CDT 2010


Author: rbrindley
Date: Wed Aug 18 14:53:48 2010
New Revision: 5052

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

- fixed an issue where the gui wasn't properly reloading the manager info for the logged in user in 1.6.2
- instead of making the user restart Asterisk, we now make them log out and back in


Modified:
    branches/2.0/config/js/index.js

Modified: branches/2.0/config/js/index.js
URL: http://svnview.digium.com/svn/asterisk-gui/branches/2.0/config/js/index.js?view=diff&rev=5052&r1=5051&r2=5052
==============================================================================
--- branches/2.0/config/js/index.js (original)
+++ branches/2.0/config/js/index.js Wed Aug 18 14:53:48 2010
@@ -240,6 +240,8 @@
 					var u = new listOfSynActions('manager.conf');
 					u.new_action( 'update', tmp_managerUser, 'write', write_value + ',originate' , write_value );
 					u.callActions();
+					var retval = ASTGUI.cliCommand('manager reload');
+					miscFunctions.logoutFunction.doLogout();
 					return 'manager_updated'; // about to reload
 				}
 			}
@@ -329,7 +331,7 @@
 				ASTGUI.dialog.alertmsg('The GUI does not have necessary privileges. <BR> Please check the manager permissions for the user !');
 				return;
 			}
-			if( crwp == 'postmappings_updated' || crwp == 'manager_updated' ){
+			if( crwp == 'postmappings_updated' ){
 				parent.ASTGUI.dialog.waitWhile(' reloading asterisk ... ');
 				var t = ASTGUI.cliCommand('reload') ;
 				setTimeout( function(){ 




More information about the asterisk-gui-commits mailing list