Fix enter key in password dialogs in Firefox

Fixes #1655
This commit is contained in:
Joseph Schorr 2016-07-27 13:12:37 -07:00
parent d240ad9a2c
commit c60f441d87
2 changed files with 2 additions and 2 deletions

View file

@ -163,7 +163,7 @@ angular.module('quay').factory('ApiService', ['Restangular', '$q', 'UtilService'
var box = bootbox.dialog({
"message": 'It has been more than a few minutes since you last logged in, ' +
'so please verify your password to perform this sensitive operation:' +
'<form style="margin-top: 10px" action="javascript:$(\'.btn-continue\').click()">' +
'<form style="margin-top: 10px" action="javascript:$(\'.btn-continue\').click();void(0)">' +
'<input id="freshPassword" class="form-control" type="password" placeholder="Current Password">' +
'</form>',
"title": 'Please Verify',

View file

@ -199,7 +199,7 @@ angular.module('quay').factory('UIService', ['$timeout', '$rootScope', '$locatio
var box = bootbox.dialog({
"message": message +
'<form style="margin-top: 10px" action="javascript:$(\'.btn-continue\').click()">' +
'<form style="margin-top: 10px" action="javascript:$(\'.btn-continue\').click();void(0)">' +
'<input id="passDialogBox" class="form-control" type="password" placeholder="Current Password">' +
'</form>',
"title": 'Please Verify',