* Mail: Fix addresses/attachments expansion plus button is not showing up in mail preview in the first load

This commit is contained in:
Hadi Nategh 2016-07-27 10:31:43 +02:00
parent 4055f1faf4
commit b9314580a5

View File

@ -967,15 +967,17 @@ app.classes.mail = AppJS.extend(
{build_children: false, data: 'attachmentsBlock', widget:'previewAttachmentArea', line: 'mailPreviewHeadersAttachments'} {build_children: false, data: 'attachmentsBlock', widget:'previewAttachmentArea', line: 'mailPreviewHeadersAttachments'}
]; ];
dataElem = this.url_email_expandOnClick(expand_content,dataElem); // Undock the preview before running expandOnClick, because we
// need to have the DOM ready for calculation.
this.mail_disablePreviewArea(false);
dataElem = this.url_email_expandOnClick(expand_content,dataElem);
// Update the internal list of selected mails, if needed // Update the internal list of selected mails, if needed
if(this.mail_selectedMails.indexOf(_id) < 0) if(this.mail_selectedMails.indexOf(_id) < 0)
{ {
this.mail_selectedMails.push(_id); this.mail_selectedMails.push(_id);
} }
this.mail_disablePreviewArea(false);
// Request email body from server // Request email body from server
IframeHandle.set_src(egw.link('/index.php',{menuaction:'mail.mail_ui.loadEmailBody',_messageID:_id})); IframeHandle.set_src(egw.link('/index.php',{menuaction:'mail.mail_ui.loadEmailBody',_messageID:_id}));