It's _blank, not _new
[squirrelmail.git] / functions / mailbox_display.php
index c77ee33438adbcc4f962ea8285df6b19806d1f37..04b1c566cffa214e229fe0b6b88210ed36c0a32d 100644 (file)
@@ -318,7 +318,10 @@ function printMessageInfo($aMsg) {
         // highlighting of checked rows
         //
         //$clickedColor = '';
-        $clickedColor = $color[2];
+        if (!empty($color[16]))
+           $clickedColor = $color[16];
+        else
+           $clickedColor = $color[2];
 
         $row_extra .= ' onmouseover="setPointer(this, ' . $t . ', \'over\', \'' . $hlt_color . '\', \'' . $mouseoverColor . '\', \'' . $clickedColor . '\');" onmouseout="setPointer(this, ' . $t . ', \'out\', \'' . $hlt_color . '\', \'' . $mouseoverColor . '\', \'' . $clickedColor . '\');" onmousedown="setPointer(this, ' . $t . ', \'click\', \'' . $hlt_color . '\', \'' . $mouseoverColor . '\', \'' . $clickedColor . '\');"';
 
@@ -426,7 +429,7 @@ function printMessageInfo($aMsg) {
                 // parentNode property is DOM Level 1
                 //
                 if ($javascript_on && $fancy_index_highlite)
-                    $td_str .= ' onClick="row_click(\'msg[' . $t . ']\'); setPointer(this.parentNode.parentNode, ' . $t . ', \'click\', \'' . $hlt_color . '\', \'' . $mouseoverColor . '\', \'' . $clickedColor . '\');"';
+                    $td_str .= ' onmousedown="row_click(\'msg[' . $t . ']\'); setPointer(this.parentNode.parentNode, ' . $t . ', \'click\', \'' . $hlt_color . '\', \'' . $mouseoverColor . '\', \'' . $clickedColor . '\');"';
 
                 $td_str .= ' ' .concat_hook_function('subject_link', array($start_msg, $searchstr));
                 if ($subject != $sSubject) {