listeners : {
select : function (combo, record, index)
{
- Roo.log(record);
+
/*
(function() {
combo.setValue('');
}).defer(100);
*/
+ if(!record){
+ return;
+ }
_this.form.findField('bodytext').setValue(record.data.content);
}
if(_this.data.id*1 > 0){
_this.dialog.el.mask("Loading");
this.load({ method: 'GET', params: { '_id' : _this.data.id }});
-
- _this.html_preview.show();
+ if(_this.data.module == 'crm'){
+ _this.html_preview.show();
+ }
_this.preview_btn.show();
} else {
}
new Pman.Request({
- url : baseURL + '/Core/MessagePreview',
+ url : baseURL + '/Crm/MessagePreview',
method : 'POST',
mask: 'Sending',
params : {
- _id : id,
- _table : (_this.data.module) ? _this.data.module + '_mailing_list_message' : 'core_mailing_list_message'
+ _id : id
},
success : function(res) {
if(res.data == 'SUCCESS'){