Kaynağa Gözat

Fixed javascript errors when clicking on subject of unread messages

pdontthink 20 yıl önce
ebeveyn
işleme
ef7711e933
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      functions/mailbox_display.php

+ 1 - 1
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) {