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:
@@ -274,7 +274,42 @@ Ext.onReady(function(){
|
|||||||
vtype:'email',
|
vtype:'email',
|
||||||
width: 200,
|
width: 200,
|
||||||
disabled : true,
|
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',
|
xtype: 'textfield',
|
||||||
|
|||||||
Reference in New Issue
Block a user