From: pdontthink Date: Thu, 31 Mar 2005 11:44:58 +0000 (+0000) Subject: Fixed javascript errors when clicking on subject of unread messages X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=f4105273b05c48b18d6376fc310ce8fb1ac4df68;hp=5659ad2e2c1d3ef139c8dc78239213ac634cbfe5 Fixed javascript errors when clicking on subject of unread messages git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9170 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index ad3355a2..06f10138 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -436,7 +436,7 @@ function printMessageInfo($aMsg) { // parentNode property is DOM Level 1 // if ($javascript_on && $fancy_index_highlite) - $td_str .= ' onmousedown="row_click(\'msg[' . $t . ']\'); setPointer(this.parentNode.parentNode, ' . $t . ', \'click\', \'' . $hlt_color . '\', \'' . $mouseoverColor . '\', \'' . $clickedColor . '\');"'; + $td_str .= ' onmousedown="row_click(\'msg[' . $t . ']\'); setPointer(this.' . (empty($bold) ? '' : 'parentNode.') . 'parentNode.parentNode, ' . $t . ', \'click\', \'' . $hlt_color . '\', \'' . $mouseoverColor . '\', \'' . $clickedColor . '\');"'; $td_str .= ' ' .concat_hook_function('subject_link', array($start_msg, $searchstr)); if ($subject != $sSubject) {