Project:jQuery Update
Version:5.x-2.0-rc1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs work

Issue Summary

Tableselect creates multiple "select-all" checkboxes in case the table is nested in another table(s).
Replace following line in tableselect.js:
$('form table th.select-all').parents('table').each(Drupal.tableSelect);
with
$('form table th.select-all').parent().each(Drupal.tableSelect);
enjoy! =)

Comments

#1

oops, wrong patch. use this:
Replace following line in tableselect.js:

$('form table th.select-all').parents('table').each(Drupal.tableSelect);

with
$('form table:has(th.select-all)').each(Drupal.tableSelect);

enjoy! =)

#2

Version:5.x-2.x-dev» 5.x-2.0-rc1
Status:needs review» needs work

#3

Category:task» bug report

#4

How can one test this patch? Which (weird) module outputs hierarchical tables?

#5

Some (custom) themes do. The bug appears when content region is placed into a table cell.

#6

Prepared a patch for this.

AttachmentSize
jquery_update_tableselect_fix.patch 428 bytes