Create app password by pressing enter

Signed-off-by: Thijs den Hartog <Thijs@thijsbeer.nl>
This commit is contained in:
Thijs den Hartog 2017-03-11 23:01:30 +01:00
parent 801b600ec3
commit f72373dfda
1 changed files with 6 additions and 0 deletions

View File

@ -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');