From 6418400a1451ced5378038264a37772142f44c51 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Wed, 7 May 2008 17:18:41 +0000 Subject: [PATCH] Add form name to row_click call as well git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13108 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- templates/default/js/default.js | 2 +- templates/default/message_list.tpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/default/js/default.js b/templates/default/js/default.js index 8313cb15..16077e9a 100644 --- a/templates/default/js/default.js +++ b/templates/default/js/default.js @@ -14,7 +14,7 @@ var orig_row_colors = new Array(); * * @param string the name of the checkbox that should be (un)checked */ -function row_click(chkboxName, event) { +function row_click(chkboxName, event, formName) { var chkbox = document.getElementById(chkboxName); if (chkbox) { // initialize orig_row_color if not defined already diff --git a/templates/default/message_list.tpl b/templates/default/message_list.tpl index e946bac7..6272dbd9 100644 --- a/templates/default/message_list.tpl +++ b/templates/default/message_list.tpl @@ -361,7 +361,7 @@ if ($pageOffset < $end_msg) { $javascript_auto_click = ''; if ($javascript_on && $fancy_index_highlite) { // include the form_id in order to show multiple messages lists. Otherwise id isn't unique - $javascript_auto_click = " onmousedown=\"row_click('$form_id"."_msg$i', event)\""; + $javascript_auto_click = " onmousedown=\"row_click('$form_id"."_msg$i', event, '$form_name')\""; } @@ -461,7 +461,7 @@ if ($non_clicked_class != 'even' && $non_clicked_class != 'odd' if ($onclick) { $sText .= " onclick=\"$onclick\""; } if ($link_extra) { $sText .= " $link_extra"; } if ($javascript_on && $fancy_index_highlite) { - $sText .= " onmousedown=\"row_click('$form_id"."_msg$i', event); setPointer(this." . (empty($bold) ? '' : 'parentNode.') . + $sText .= " onmousedown=\"row_click('$form_id"."_msg$i', event, '$form_name'); setPointer(this." . (empty($bold) ? '' : 'parentNode.') . 'parentNode.parentNode, ' . $i . ', \'click\', \''. $non_clicked_class. '\', \'mouse_over\', \'clicked\');"'; } $sText .= ">" -- 2.25.1