diff options
author | Thijs den Hartog <Thijs@thijsbeer.nl> | 2017-03-11 23:01:30 +0100 |
---|---|---|
committer | Thijs den Hartog <Thijs@thijsbeer.nl> | 2017-03-13 08:57:01 +0100 |
commit | f72373dfda92d9ef6b279bd4a196cfa3d399b851 (patch) | |
tree | 8218f1dc76187a7e198446c72b56a480e45f8313 /settings | |
parent | 801b600ec348edab2447866b349a0d163db94f15 (diff) | |
download | nextcloud-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')
-rw-r--r-- | settings/js/authtoken_view.js | 6 |
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'); |