Merge pull request #1656 from coreos-inc/stupid-ff

Fix enter key in password dialogs in Firefox
This commit is contained in:
josephschorr 2016-07-27 16:11:51 -07:00 committed by GitHub
commit 98bfdc7244
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',