Module: deluge Branch: master Commit: 7df7f13e269fe5a7e4f84274fa7f173423e1b487
Author: Damien Churchill <[email protected]> Date: Wed Apr 28 13:41:09 2010 +0100 select the text when focusing the password field --- deluge/ui/web/js/deluge-all/LoginWindow.js | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/LoginWindow.js b/deluge/ui/web/js/deluge-all/LoginWindow.js index 7480437..527c218 100644 --- a/deluge/ui/web/js/deluge-all/LoginWindow.js +++ b/deluge/ui/web/js/deluge-all/LoginWindow.js @@ -129,7 +129,7 @@ Deluge.LoginWindow = Ext.extend(Ext.Window, { buttons: Ext.MessageBox.OK, modal: false, fn: function() { - passwordField.focus(); + passwordField.focus(true, 10); }, icon: Ext.MessageBox.WARNING, iconCls: 'x-deluge-icon-warning' @@ -148,7 +148,6 @@ Deluge.LoginWindow = Ext.extend(Ext.Window, { }, onShow: function() { - this.passwordField.focus(false, 150); - this.passwordField.setRawValue(''); + this.passwordField.focus(true, true); } }); -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
