mirror of
https://github.com/ansible/awx.git
synced 2026-05-18 06:47:41 -02:30
Login dialog
Added keycode 13 to the kedown bind for Alert dialogs.
This commit is contained in:
@@ -103,7 +103,7 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
|
|||||||
$('#alert2_ok_btn').focus();
|
$('#alert2_ok_btn').focus();
|
||||||
});
|
});
|
||||||
$(document).bind('keydown', function (e) {
|
$(document).bind('keydown', function (e) {
|
||||||
if (e.keyCode === 27) {
|
if (e.keyCode === 27 || e.keyCode === 13) {
|
||||||
$('#alert-modal2').modal('hide');
|
$('#alert-modal2').modal('hide');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -129,7 +129,7 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
|
|||||||
$('#alert_ok_btn').focus();
|
$('#alert_ok_btn').focus();
|
||||||
});
|
});
|
||||||
$(document).bind('keydown', function (e) {
|
$(document).bind('keydown', function (e) {
|
||||||
if (e.keyCode === 27) {
|
if (e.keyCode === 27 || e.keyCode === 13) {
|
||||||
$('#alert-modal').modal('hide');
|
$('#alert-modal').modal('hide');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user