BUG 8730 arreglo de email configuration cuando este no existe

This commit is contained in:
Alvaro Campos
2012-04-13 18:16:57 -04:00
parent 60cffbd255
commit d1d2a820f9
2 changed files with 12 additions and 9 deletions

View File

@@ -101,7 +101,7 @@ Ext.onReady(function(){
disabled : true,
listeners: {
select: function(combo, value) {
if (Ext.getCmp('EmailEngine').getValue()== 'MAIL') { alert
if (Ext.getCmp('EmailEngine').getValue()== 'MAIL') {
Ext.getCmp('Server').setVisible(false);
Ext.getCmp('Server').getEl().up('.x-form-item').setDisplayed(false); // hide label
Ext.getCmp('Port').setVisible(false);
@@ -317,7 +317,8 @@ Ext.onReady(function(){
params: { CFG_UID: 'Emails' },
success: function(r,o) {
var res = Ext.decode(r.responseText);
if (! res.data) return;
if (! res.data)
return;
if (res.success) {
Ext.getCmp('EnableEmailNotifications').setValue(res.data.MESS_ENABLED);
Ext.getCmp('EmailEngine').setValue(res.data.MESS_ENGINE);