|
|
|
|
@ -107,6 +107,8 @@ |
|
|
|
|
|
|
|
|
|
_result: undefined, |
|
|
|
|
|
|
|
|
|
_newAppLoginName: undefined, |
|
|
|
|
|
|
|
|
|
_newAppPassword: undefined, |
|
|
|
|
|
|
|
|
|
_hideAppPasswordBtn: undefined, |
|
|
|
|
@ -136,6 +138,8 @@ |
|
|
|
|
this._addAppPasswordBtn.click(_.bind(this._addAppPassword, this)); |
|
|
|
|
|
|
|
|
|
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'); |
|
|
|
|
@ -181,6 +185,7 @@ |
|
|
|
|
$.when(creatingToken).done(function(resp) { |
|
|
|
|
_this.collection.add(resp.deviceToken); |
|
|
|
|
_this.render(); |
|
|
|
|
_this._newAppLoginName.val(resp.loginName); |
|
|
|
|
_this._newAppPassword.val(resp.token); |
|
|
|
|
_this._toggleFormResult(false); |
|
|
|
|
_this._newAppPassword.select(); |
|
|
|
|
@ -194,6 +199,10 @@ |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_onNewTokenLoginNameFocus: function() { |
|
|
|
|
this._newAppLoginName.select(); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_onNewTokenFocus: function() { |
|
|
|
|
this._newAppPassword.select(); |
|
|
|
|
}, |
|
|
|
|
|