X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fmailbox_display.php;h=ad3355a2d1456d045f13ede080bc93c9f087e61f;hp=f8c6d32b694ece278c49c5b3043e8f63128390ab;hb=34e035f76d08e1919ada7e68af9a304d2d6d4ddd;hpb=85ea9dad90a49b82ddcbc6929a4acc968ccd3bbb
diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php
index f8c6d32b..ad3355a2 100644
--- a/functions/mailbox_display.php
+++ b/functions/mailbox_display.php
@@ -300,6 +300,7 @@ function printMessageInfo($aMsg) {
if (!isset($hlt_color)) {
$hlt_color = $color_string;
}
+
$col = 0;
$sSubject = str_replace(' ', ' ', decodeHeader($sSubject));
$subject = processSubject($sSubject, $iIndent);
@@ -311,21 +312,38 @@ function printMessageInfo($aMsg) {
// this stuff does the auto row highlighting on mouseover
//
if ($javascript_on && $fancy_index_highlite) {
+
$mouseoverColor = $color[5];
- $clickedColor = $color[2];
+
+ // set this to an empty string to turn off extra
+ // highlighting of checked rows
+ //
+ //$clickedColor = '';
+ 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 . '\');"';
+
}
- echo html_tag( 'tr','','','',$row_extra) . "\n";
+ if ($javascript_on && $fancy_index_highlite)
+ echo "";
+ echo html_tag( 'tr', '', '', '', $row_extra) . "\n";
// this does the auto-checking of the checkbox no matter
// where on the row you click
//
$javascript_auto_click = '';
- if ($javascript_on && $fancy_index_highlite)
- $javascript_auto_click = ' onMouseDown="if (document.getElementById(\'msg[' . $t . ']\')) { document.getElementById(\'msg[' . $t . ']\').checked = (document.getElementById(\'msg[' . $t . ']\').checked ? false : true); }"';
+ $checkbox_javascript = '';
+ if ($javascript_on && $fancy_index_highlite) {
+ $javascript_auto_click = ' onMouseDown="row_click(\'msg[' . $t . ']\')"';
+ $checkbox_javascript = ' onClick="this.checked = !this.checked;"';
+ }
if (sizeof($index_order)) {
@@ -375,9 +393,9 @@ function printMessageInfo($aMsg) {
switch ($index_order_part) {
case 1: /* checkbox */
echo html_tag( 'td',
- addCheckBox("msg[$t]", $checkall, $iId),
+ addCheckBox("msg[$t]", $checkall, $iId, $checkbox_javascript),
'center',
- $hlt_color );
+ $hlt_color, $javascript_auto_click);
break;
case 2: /* from */
if ($senderAddress != $senderName) {
@@ -411,6 +429,15 @@ function printMessageInfo($aMsg) {
$td_str .= ''
. "\n