mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Login dialog
Added keycode 13 to the kedown bind for Alert dialogs.
This commit is contained in:
parent
a38bb7c79c
commit
aac6cc6a5a
@ -103,7 +103,7 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
|
||||
$('#alert2_ok_btn').focus();
|
||||
});
|
||||
$(document).bind('keydown', function (e) {
|
||||
if (e.keyCode === 27) {
|
||||
if (e.keyCode === 27 || e.keyCode === 13) {
|
||||
$('#alert-modal2').modal('hide');
|
||||
}
|
||||
});
|
||||
@ -129,7 +129,7 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
|
||||
$('#alert_ok_btn').focus();
|
||||
});
|
||||
$(document).bind('keydown', function (e) {
|
||||
if (e.keyCode === 27) {
|
||||
if (e.keyCode === 27 || e.keyCode === 13) {
|
||||
$('#alert-modal').modal('hide');
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user