mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Submit on enter
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
80abb69b60
commit
e80d3c2a10
1 changed files with 6 additions and 0 deletions
|
|
@ -1524,6 +1524,7 @@ OC.PasswordConfirmation = {
|
|||
callback: null,
|
||||
|
||||
init: function() {
|
||||
var self = this;
|
||||
this.$form = $('#sudo-login-form');
|
||||
this.$background = $('#sudo-login-background');
|
||||
this.$input = this.$form.find('.question');
|
||||
|
|
@ -1532,6 +1533,11 @@ OC.PasswordConfirmation = {
|
|||
this.$background.on('click', _.bind(this._fadeOut, this));
|
||||
$('.password-confirm-required').on('click', _.bind(this.requirePasswordConfirmation, this));
|
||||
this.$submit.on('click', _.bind(this._submitPasswordConfirmation, this));
|
||||
this.$input.keyup(function(e) {
|
||||
if (e.keyCode === 13) {
|
||||
self._submitPasswordConfirmation();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
requiresPasswordConfirmation: function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue