rbrindley: branch 2.0 r5048 - /branches/2.0/config/password.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Aug 10 12:23:51 CDT 2010


Author: rbrindley
Date: Tue Aug 10 12:23:47 2010
New Revision: 5048

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

- changed the change password to use a callback function which now has the new
  'manager reload' command, this should fix timing issues


Modified:
    branches/2.0/config/password.html

Modified: branches/2.0/config/password.html
URL: http://svnview.digium.com/svn/asterisk-gui/branches/2.0/config/password.html?view=diff&rev=5048&r1=5047&r2=5048
==============================================================================
--- branches/2.0/config/password.html (original)
+++ branches/2.0/config/password.html Tue Aug 10 12:23:47 2010
@@ -87,12 +87,13 @@
 			DOM_newpass.focus(); return true;
 		};
 
-		var u = new listOfSynActions('manager.conf') ;
+		var u = new listOfActions('manager.conf') ;
 		u.new_action('update', CURRENT_Username, 'secret', DOM_newpass.value);
-		u.callActions();
+		u.callActions(function() {
+			var t = ASTGUI.cliCommand('manager reload');
+		});
 
 		ASTGUI.feedback( { msg:"Password Updated Successfully", showfor:3 });
-		var t = ASTGUI.cliCommand('manager reload');
 		alert("Password Updated Successfully!!  \n\n You will now be redirected to the login page \n You must relogin using your new password") ;
 		var f = makeSyncRequest({ action :'logoff'});
 




More information about the asterisk-gui-commits mailing list