From 32485e5ee6413a19b736d0e08607884d193a7ff8 Mon Sep 17 00:00:00 2001 From: kink Date: Mon, 30 Jun 2003 19:36:16 +0000 Subject: [PATCH] JS for sendmdn was not output when comp_in_new was disabled. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5181 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 1 + functions/page_header.php | 27 ++++++++++++++++----------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2765e938..981fb00c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -44,6 +44,7 @@ Version 1.5.0 -- CVS - Applied bugfixes from stable to htmlfilter code. - Fix bug #722933 where resuming a draft message would lose the reference headers - Removed hard coded colors from login.php and made it use the default theme and css file + - Fix that sending of read receipts failed when JavaScript on and comp in new off (#738130). ************************************** *** SquirrelMail Stable Series 1.4 *** diff --git a/functions/page_header.php b/functions/page_header.php index c3355305..ceea10b2 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -86,7 +86,7 @@ function displayPageHeader($color, $mailbox, $xtra='', $session=false) { global $hide_sm_attributions, $PHP_SELF, $frame_top, $compose_new_win, $compose_width, $compose_height, $attachemessages, $provider_name, $provider_uri, - $javascript_on; + $javascript_on, $default_use_mdn, $mdn_user_support; sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION ); sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION ); @@ -110,6 +110,8 @@ function displayPageHeader($color, $mailbox, $xtra='', $session=false) { switch ( $module ) { case 'src/read_body.php': $js =''; + + // compose in new window code if ($compose_new_win == '1') { if (!preg_match("/^[0-9]{3,4}$/", $compose_width)) { $compose_width = '640'; @@ -117,8 +119,6 @@ function displayPageHeader($color, $mailbox, $xtra='', $session=false) { if (!preg_match("/^[0-9]{3,4}$/", $compose_height)) { $compose_height = '550'; } - $js .= "\n".'\n"; + } - $js .= "// -->\n". - "\n"; - - } - displayHtmlHeader ('SquirrelMail', $js); - $onload = $xtra; + displayHtmlHeader ('SquirrelMail', $js); + $onload = $xtra; break; case 'src/compose.php': $js = '