forked from extern/egroupware
fix javascript error for missing toolbaractions
This commit is contained in:
parent
b0f50abd78
commit
5f85d2a592
@ -624,8 +624,8 @@ app.classes.mail = AppJS.extend(
|
|||||||
//console.log("mail_preview",dataElem);
|
//console.log("mail_preview",dataElem);
|
||||||
this.mail_selectedMails.push(_id);
|
this.mail_selectedMails.push(_id);
|
||||||
this.mail_disablePreviewArea(false);
|
this.mail_disablePreviewArea(false);
|
||||||
var toolbaractions = JSON.parse(dataElem.data.toolbaractions);
|
var toolbaractions = ((typeof dataElem != 'undefined' && typeof dataElem.data != 'undefined' && typeof dataElem.data.toolbaractions != 'undefined')?JSON.parse(dataElem.data.toolbaractions):undefined);
|
||||||
this.et2.getWidgetById('toolbar').set_actions(toolbaractions);
|
if (toolbaractions) this.et2.getWidgetById('toolbar').set_actions(toolbaractions);
|
||||||
var IframeHandle = this.et2.getWidgetById('messageIFRAME');
|
var IframeHandle = this.et2.getWidgetById('messageIFRAME');
|
||||||
//console.log(IframeHandle);
|
//console.log(IframeHandle);
|
||||||
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}));
|
||||||
|
Loading…
Reference in New Issue
Block a user