From e346043e3a4f2333f8c36f662ad1f83c7dc707fd Mon Sep 17 00:00:00 2001 From: ebullient Date: Mon, 29 Mar 2004 17:41:15 +0000 Subject: [PATCH] thought of this last night, but forgot about it. Seth called me on it.. *sigh* git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6938 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/page_header.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/functions/page_header.php b/functions/page_header.php index 5700e48b..d6c3ad39 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -168,6 +168,15 @@ function displayPageHeader($color, $mailbox, $xtra='', $session=false) { '"width='.$compose_width. ',height='.$compose_height. ',scrollbars=yes,resizable=yes");'."\n". "}\n\n"; + $js .= "function comp_in_new(comp_uri) {\n". + " if (!comp_uri) {\n". + ' comp_uri = "'.$compose_uri."\";\n". + ' }'. "\n". + ' var newwin = window.open(comp_uri' . + ', "_blank",'. + '"width='.$compose_width. ',height='.$compose_height. + ',scrollbars=yes,resizable=yes");'."\n". + "}\n\n"; } // javascript for sending read receipts -- 2.25.1