From: pdontthink Date: Wed, 7 May 2008 17:18:41 +0000 (+0000) Subject: Add form name to row_click call as well X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6418400a1451ced5378038264a37772142f44c51;p=squirrelmail.git 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 --- 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 .= ">"