mirror of
https://github.com/ansible/awx.git
synced 2026-02-23 05:55:59 -03:30
fixed problem with modal windows which solved trello card 269
This commit is contained in:
@@ -155,7 +155,7 @@ function Authenticate($log, $cookieStore, $compile, $window, $scope, $rootScope,
|
||||
$('.api-error').empty();
|
||||
var token;
|
||||
if (Empty(username) || Empty(password)) {
|
||||
Alert('Error!', 'Please provide a username and password before attempting to login.', 'alert-danger', setLoginFocus);
|
||||
Alert('Error!', 'Please provide a username and password before attempting to login.', 'alert-danger', setLoginFocus, null, null, false);
|
||||
} else {
|
||||
Wait('start');
|
||||
Authorization.retrieveToken(username, password)
|
||||
@@ -185,7 +185,7 @@ function Authenticate($log, $cookieStore, $compile, $window, $scope, $rootScope,
|
||||
' and accessible.';
|
||||
}
|
||||
scope.reset();
|
||||
Alert(hdr, msg, 'alert-danger', setLoginFocus);
|
||||
Alert(hdr, msg, 'alert-danger', setLoginFocus, null, null, false);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -410,7 +410,8 @@ angular.module('SchedulesHelper', [ 'Utilities', 'RestServices', 'SchedulesHelpe
|
||||
Prompt({
|
||||
hdr: hdr,
|
||||
body: "<div class=\"alert alert-info\">Are you sure you want to delete the <em>" + schedule.name + "</em> schedule?</div>",
|
||||
action: action
|
||||
action: action,
|
||||
backdrop: false
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user