From dd89a82a2cccbed1f7c93a552c84659b7db966a5 Mon Sep 17 00:00:00 2001 From: chouseknecht Date: Wed, 31 Jul 2013 17:23:47 -0400 Subject: [PATCH] AC-325 randomly the black background gets left behind and still visible after the login dialog box has been hidden. Thinking this might be a timing thing. Moved call to modal('hide') up in the list of steps processed on a successful login. --- awx/ui/static/js/controllers/Authentication.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/ui/static/js/controllers/Authentication.js b/awx/ui/static/js/controllers/Authentication.js index 1385ef69f2..af8a6ea829 100644 --- a/awx/ui/static/js/controllers/Authentication.js +++ b/awx/ui/static/js/controllers/Authentication.js @@ -53,6 +53,7 @@ function Authenticate($window, $scope, $rootScope, $location, Authorization, Tog var token; Authorization.retrieveToken(username, password) .success( function(data, status, headers, config) { + $('#login-modal').modal('hide'); token = data.token; Authorization.setToken(data.token); $scope.reset(); @@ -64,11 +65,10 @@ function Authenticate($window, $scope, $rootScope, $location, Authorization, Tog $rootScope.token = token; $rootScope.userLoggedIn = true; $rootScope.token_expire = today.getTime(); - + // Get all the profile/access info regarding the logged in user Authorization.getUser() .success(function(data, status, headers, config) { - $('#login-modal').modal('hide'); Authorization.setUserInfo(data); Authorization.getLicense() .success(function(data, status, headers, config) {