1
0
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:
Michael Abashian 2016-07-26 13:09:58 -04:00 committed by GitHub
commit a4b4c797de

View File

@ -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');
}
});