avoid preview artifacts on preview of no search results

This commit is contained in:
Klaus Leithoff 2014-02-10 10:04:59 +00:00
parent c4b8bd6c17
commit 5e41e076e8

View File

@ -642,7 +642,7 @@ app.classes.mail = AppJS.extend(
//get_class does not exist yet
//var pAAClass = this.et2.getWidgetById('previewAttachmentArea').get_class();
//console.log(pAAClass);
if (this.et2.getWidgetById('previewAttachmentArea'))
if (this.et2.getWidgetById('previewAttachmentArea') && typeof _id != 'undefined' && _id !='')
{
this.et2.getWidgetById('previewAttachmentArea').set_class('previewAttachmentArea');
}