Fix enter key in password dialogs
This commit is contained in:
parent
12c7f20ae9
commit
40ec2fcfd0
3 changed files with 6 additions and 6 deletions
|
@ -241,14 +241,14 @@ angular.module("core-config-setup", ['angularFileUpload'])
|
|||
|
||||
var box = bootbox.dialog({
|
||||
"message": 'Please enter your superuser password to validate your auth configuration:' +
|
||||
'<form style="margin-top: 10px" action="javascript:void(0)">' +
|
||||
'<form style="margin-top: 10px" action="javascript:$(\'.btn-continue\').click()">' +
|
||||
'<input id="validatePassword" class="form-control" type="password" placeholder="Password">' +
|
||||
'</form>',
|
||||
"title": 'Enter Password',
|
||||
"buttons": {
|
||||
"success": {
|
||||
"label": "Validate Config",
|
||||
"className": "btn-success",
|
||||
"className": "btn-success btn-continue",
|
||||
"callback": function() {
|
||||
$scope.performValidateAndSave($('#validatePassword').val());
|
||||
}
|
||||
|
|
Reference in a new issue