improve failed attempt reporting

This commit is contained in:
Damien Churchill 2009-02-12 00:01:59 +00:00
parent 0b3a04dc6c
commit d0020344f1
1 changed files with 10 additions and 2 deletions

View File

@ -5,7 +5,7 @@ Deluge.Login = {
baseCls: 'x-plain',
labelWidth: 55,
items: [{
fieldLabel: 'Password',
fieldLabel: _('Password'),
id: 'password',
name: 'password',
inputType: 'password',
@ -19,6 +19,14 @@ Deluge.Login = {
onSuccess: function(result) {
if (result == true) {
Deluge.Login.Window.hide();
} else {
Ext.MessageBox.show({
title: _('Incorrect'),
msg: _('You entered an incorrect password'),
buttons: Ext.MessageBox.OK,
modal: false,
icon: Ext.MessageBox.WARNING
});
}
}
});
@ -35,7 +43,7 @@ Deluge.Login.Window = new Ext.Window({
closable: false,
modal: true,
plain: true,
title: 'Login',
title: _('Login'),
items: Deluge.Login.Form,
buttons: [{
text: 'Login',