select the text when focusing the password field
This commit is contained in:
parent
066d199c78
commit
7df7f13e26
|
@ -129,7 +129,7 @@ Deluge.LoginWindow = Ext.extend(Ext.Window, {
|
||||||
buttons: Ext.MessageBox.OK,
|
buttons: Ext.MessageBox.OK,
|
||||||
modal: false,
|
modal: false,
|
||||||
fn: function() {
|
fn: function() {
|
||||||
passwordField.focus();
|
passwordField.focus(true, 10);
|
||||||
},
|
},
|
||||||
icon: Ext.MessageBox.WARNING,
|
icon: Ext.MessageBox.WARNING,
|
||||||
iconCls: 'x-deluge-icon-warning'
|
iconCls: 'x-deluge-icon-warning'
|
||||||
|
@ -148,7 +148,6 @@ Deluge.LoginWindow = Ext.extend(Ext.Window, {
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow: function() {
|
onShow: function() {
|
||||||
this.passwordField.focus(false, 150);
|
this.passwordField.focus(true, true);
|
||||||
this.passwordField.setRawValue('');
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue