mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Merge pull request #3090 from mabashian/3084-error-prompt-enter
Fix alert modal -> hit enter -> redirect to home page
This commit is contained in:
commit
a4b4c797de
@ -134,6 +134,7 @@ angular.module('Utilities', ['RestServices', 'Utilities', 'sanitizeFilter'])
|
||||
});
|
||||
$(document).bind('keydown', function (e) {
|
||||
if (e.keyCode === 27 || e.keyCode === 13) {
|
||||
e.preventDefault();
|
||||
$('#alert-modal2').modal('hide');
|
||||
}
|
||||
});
|
||||
@ -161,6 +162,7 @@ angular.module('Utilities', ['RestServices', 'Utilities', 'sanitizeFilter'])
|
||||
});
|
||||
$(document).bind('keydown', function (e) {
|
||||
if (e.keyCode === 27 || e.keyCode === 13) {
|
||||
e.preventDefault();
|
||||
$('#alert-modal').modal('hide');
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user