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.

This commit is contained in:
chouseknecht
2013-07-31 17:23:47 -04:00
parent 30aa1d74d8
commit dd89a82a2c

View File

@@ -53,6 +53,7 @@ function Authenticate($window, $scope, $rootScope, $location, Authorization, Tog
var token; var token;
Authorization.retrieveToken(username, password) Authorization.retrieveToken(username, password)
.success( function(data, status, headers, config) { .success( function(data, status, headers, config) {
$('#login-modal').modal('hide');
token = data.token; token = data.token;
Authorization.setToken(data.token); Authorization.setToken(data.token);
$scope.reset(); $scope.reset();
@@ -68,7 +69,6 @@ function Authenticate($window, $scope, $rootScope, $location, Authorization, Tog
// Get all the profile/access info regarding the logged in user // Get all the profile/access info regarding the logged in user
Authorization.getUser() Authorization.getUser()
.success(function(data, status, headers, config) { .success(function(data, status, headers, config) {
$('#login-modal').modal('hide');
Authorization.setUserInfo(data); Authorization.setUserInfo(data);
Authorization.getLicense() Authorization.getLicense()
.success(function(data, status, headers, config) { .success(function(data, status, headers, config) {