diff options
author | Christoph Wurst <christoph@owncloud.com> | 2016-06-24 17:00:59 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@owncloud.com> | 2016-06-24 17:00:59 +0200 |
commit | 1454b4515c8bdcb05c400c605cf6d84c38476efc (patch) | |
tree | 72e2dbe19e7a6ced15696d64fe657080ac635376 /settings/js | |
parent | 26aacb4e62cbd8f83f59ede459463a13a16eb319 (diff) | |
download | nextcloud-server-1454b4515c8bdcb05c400c605cf6d84c38476efc.tar.gz nextcloud-server-1454b4515c8bdcb05c400c605cf6d84c38476efc.zip |
fix layout
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/authtoken_view.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/settings/js/authtoken_view.js b/settings/js/authtoken_view.js index cf6b4f7c8d4..db6dac85ce0 100644 --- a/settings/js/authtoken_view.js +++ b/settings/js/authtoken_view.js @@ -139,6 +139,7 @@ this._result = $('#app-password-result'); this._newAppLoginName = $('#new-app-login-name'); + this._newAppLoginName.on('focus', _.bind(this._onNewTokenLoginNameFocus, this)); this._newAppPassword = $('#new-app-password'); this._newAppPassword.on('focus', _.bind(this._onNewTokenFocus, this)); this._hideAppPasswordBtn = $('#app-password-hide'); @@ -184,9 +185,7 @@ $.when(creatingToken).done(function(resp) { _this.collection.add(resp.deviceToken); _this.render(); - _this._newAppLoginName.text(t('core', 'You may now configure your client with username "{loginName}" and the following password:', { - loginName: resp.loginName - })); + _this._newAppLoginName.val(resp.loginName); _this._newAppPassword.val(resp.token); _this._toggleFormResult(false); _this._newAppPassword.select(); @@ -200,6 +199,10 @@ }); }, + _onNewTokenLoginNameFocus: function() { + this._newAppLoginName.select(); + }, + _onNewTokenFocus: function() { this._newAppPassword.select(); }, |