From 31b32433be9c16639be9a7205496afd0e43073c9 Mon Sep 17 00:00:00 2001 From: stekkel Date: Fri, 17 May 2002 12:14:23 +0000 Subject: [PATCH] Call composenew via pageheader git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2838 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/right_main.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/right_main.php b/src/right_main.php index 865e27f5..72234ec1 100644 --- a/src/right_main.php +++ b/src/right_main.php @@ -107,18 +107,8 @@ if( isset($do_hook) && $do_hook ) { sqimap_mailbox_select($imapConnection, $mailbox); -if (isset($composenew)) { - $width= getPref($data_dir, $username, 'editor_size', 76); - if ($width < 65) { - $pix_width = 560; - } else { - $width = (.9*$width); - $pix_width = intval($width).'0'; - } - $features = "toolbar=no, width=$pix_width, height=650, scrollbars=yes, resizable=yes target=_blank"; - $location = 'compose.php?mailbox='. urlencode($mailbox).'&attachedmessages=true&session='."$session"; - $onload= "window.open(\"$location\",\"compose_window_$session\", \"$features\");"; - displayPageHeader($color, $mailbox, $onload); +if (isset($composenew) && $composenew) { + displayPageHeader($color, $mailbox, 'comp_in_new();'); } else { displayPageHeader($color, $mailbox); } -- 2.25.1