Added a "compose in new window" option located in display prefs. Each file that calls...
[squirrelmail.git] / src / addressbook.php
index ac99586a20053fdaf8c450cc9818589e8ce25151..bfeac2423aa8ba5e5009f9e9079955ac0b7ee102 100644 (file)
@@ -310,8 +310,11 @@ if ($showaddrlist) {
                  '<TD VALIGN=top NOWRAP WIDTH="1%">&nbsp;' . $row['name'] .
                  '&nbsp;</TD>',
                  '<TD VALIGN=top NOWRAP WIDTH="1%">&nbsp;' .
-                 '<A HREF="compose.php?send_to=' . rawurlencode($row['email']) .
-                 '">' . $row['email'] . '</A>&nbsp;</TD>'."\n",
+                 '<A HREF="compose.php?send_to=' . rawurlencode($row['email']);
+                if ($compose_new_win == '1') {
+                     echo '" TARGET="compose_window" onClick="comp_in_new()"';
+                }
+                echo '">' . $row['email'] . '</A>&nbsp;</TD>'."\n",
                  '<TD VALIGN=top WIDTH="1%">&nbsp;' . $row['label'] . '&nbsp;</TD>' .
                  "</TR>\n";
             $line++;