Sfoglia il codice sorgente

thought of this last night, but forgot about it. Seth called me on it.. *sigh*

Erin Schnabel 21 anni fa
parent
commit
fe2f0f7eae
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 9 0
      functions/page_header.php

+ 9 - 0
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