aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/js/js.js b/core/js/js.js
index e8f6df4cfa9..4579fe394af 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -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() {