From 9d8a104264cce2b4a0a777d65185b56c2c192b32 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Thu, 16 Apr 2009 18:17:33 +0000 Subject: [PATCH] give focus back to the password field after the messagebox is closed --- deluge/ui/web/js/deluge-login.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/ui/web/js/deluge-login.js b/deluge/ui/web/js/deluge-login.js index b88d7a5f1..684ebdf6a 100644 --- a/deluge/ui/web/js/deluge-login.js +++ b/deluge/ui/web/js/deluge-login.js @@ -94,11 +94,14 @@ Copyright: msg: _('You entered an incorrect password'), buttons: Ext.MessageBox.OK, modal: false, + fn: function() { + passwordField.focus(); + }, icon: Ext.MessageBox.WARNING, iconCls: 'x-deluge-icon-warning' }); } - }.bindWithEvent(this) + }.bindWithEvent(this); }); },