1
0
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:
Chris Houseknecht 2014-08-12 10:19:45 -04:00
parent a38bb7c79c
commit aac6cc6a5a

View File

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