BUG 9681 "Cuando se quiere configurar el email con una..." SOLVED

- Clearing the "Account From" field in ADMIN>Settings>Email not
  cleared the password
- Problem solved by deleting the "Account From" field is automatically
  deleted the password
* Available from version 2.0.44
This commit is contained in:
Victor Saisa Lopez
2012-08-29 11:22:33 -04:00
parent 090e5016df
commit 44c772391a

View File

@@ -274,7 +274,42 @@ Ext.onReady(function(){
vtype:'email',
width: 200,
disabled : true,
allowBlank: false
allowBlank: false,
enableKeyEvents: true,
listeners: {
keydown: function (txt, e) {
switch (e.getKey()) {
case 8: //Delete
case 46: //Supr
if (Ext.getCmp("AccountFrom").getValue() == "") {
Ext.getCmp("Password").setValue("");
}
break;
}
},
keyup: function (txt, e) {
var strValue = Ext.getCmp("AccountFrom").getValue();
var sw = 0;
switch (e.getKey()) {
case 8: //Delete
case 46: //Supr
if (strValue == "") {
sw = 1;
}
break;
default:
if (strValue.length <= 1) {
sw = 1;
}
break;
}
if (sw == 1) {
Ext.getCmp("Password").setValue("");
}
}
}
},
{
xtype: 'textfield',