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 {