thought of this last night, but forgot about it. Seth called me on it.. *sigh*
authorebullient <ebullient@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 29 Mar 2004 17:41:15 +0000 (17:41 +0000)
committerebullient <ebullient@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 29 Mar 2004 17:41:15 +0000 (17:41 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6938 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/page_header.php

index 5700e48b942c48ce3f3f6e0c791f0a073db85bb1..d6c3ad3958ec42f2f039b82a27001b30d8f21dda 100644 (file)
@@ -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