summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorThijs den Hartog <Thijs@thijsbeer.nl>2017-03-11 23:01:30 +0100
committerThijs den Hartog <Thijs@thijsbeer.nl>2017-03-13 08:57:01 +0100
commitf72373dfda92d9ef6b279bd4a196cfa3d399b851 (patch)
tree8218f1dc76187a7e198446c72b56a480e45f8313 /settings/js
parent801b600ec348edab2447866b349a0d163db94f15 (diff)
downloadnextcloud-server-f72373dfda92d9ef6b279bd4a196cfa3d399b851.tar.gz
nextcloud-server-f72373dfda92d9ef6b279bd4a196cfa3d399b851.zip
Create app password by pressing enter
Signed-off-by: Thijs den Hartog <Thijs@thijsbeer.nl>
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/authtoken_view.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/settings/js/authtoken_view.js b/settings/js/authtoken_view.js
index 365057b5fc6..9931be2ae1f 100644
--- a/settings/js/authtoken_view.js
+++ b/settings/js/authtoken_view.js
@@ -230,6 +230,12 @@
this._tokenName = $('#app-password-name');
this._addAppPasswordBtn = $('#add-app-password');
this._addAppPasswordBtn.click(_.bind(this._addAppPassword, this));
+ this._appPasswordName = $('#app-password-name');
+ this._appPasswordName.on('keypress', function(event) {
+ if (event.which === 13) {
+ _this._addAppPassword();
+ }
+ });
this._result = $('#app-password-result');
this._newAppLoginName = $('#new-app-login-name');