From 1450ac0016e88bf3069de206f63e57b4d72a7579 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 10 Feb 2014 22:41:53 +0000 Subject: [PATCH] Missed ID change from r45523, fixes undefined error when double-clicking a mail --- mail/js/app.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mail/js/app.js b/mail/js/app.js index e9cbdaa700..9f9f9f14dd 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -138,17 +138,15 @@ app.classes.mail = AppJS.extend( if (isDisplay) { var subject = this.et2.getWidgetById('mail_displaysubject'); - var body = this.et2.getWidgetById('mail_displaybody'); + var body = this.et2.getWidgetById('mailDisplayBodySrc'); body.node.parentNode.style.top=subject.node.offsetTop+40+'px'; - var app_registry = egw.link_get_registry('mail');//this.appname); - //console.log(app_registry); + var app_registry = egw.link_get_registry('mail'); w=870; if (typeof app_registry['view'] != 'undefined' && typeof app_registry['view_popup'] != 'undefined' ) { var w_h =app_registry['view_popup'].split('x'); if (w_h[1] == 'egw_getWindowOuterHeight()') w_h[1] = (screen.availHeight>egw_getWindowOuterHeight()?screen.availHeight:egw_getWindowOuterHeight()); } - //alert('resizing to'+(w_h[0]?w_h[0]:870)+','+(w_h[1]?w_h[1]:egw_getWindowOuterHeight())); window.resizeTo((w_h[0]?w_h[0]:870),(w_h[1]?w_h[1]:(screen.availHeight>egw_getWindowOuterHeight()?screen.availHeight:egw_getWindowOuterHeight()))); } if (isCompose)