fix problem with clicking on attachments in preview

This commit is contained in:
Klaus Leithoff 2014-02-11 10:01:48 +00:00
parent 2574956cdc
commit 814e5d1204

View File

@ -1502,8 +1502,8 @@ app.classes.mail = AppJS.extend(
//console.log(this, arguments, widget); //console.log(this, arguments, widget);
var mailid; var mailid;
var attgrid; var attgrid;
if (typeof calledForCompose == 'undefined') calledForCompose=false; if (typeof calledForCompose == 'undefined' || typeof calledForCompose == 'object') calledForCompose=false;
if (calledForCompose==false) if (calledForCompose===false)
{ {
if (this.mail_isMainWindow) if (this.mail_isMainWindow)
{ {
@ -1518,7 +1518,7 @@ app.classes.mail = AppJS.extend(
attgrid = this.et2.getArrayMgr("content").getEntry('mail_displayattachments')[widget.id.replace(/\[filename\]/,'')]; attgrid = this.et2.getArrayMgr("content").getEntry('mail_displayattachments')[widget.id.replace(/\[filename\]/,'')];
} }
} }
else if (calledForCompose===true)
{ {
// CALLED FOR COMPOSE; processedmail_id could hold several IDs seperated by comma // CALLED FOR COMPOSE; processedmail_id could hold several IDs seperated by comma
attgrid = this.et2.getArrayMgr("content").getEntry('attachments')[widget.id.replace(/\[name\]/,'')]; attgrid = this.et2.getArrayMgr("content").getEntry('attachments')[widget.id.replace(/\[name\]/,'')];