Posted by whisk on May 27, 2008 at 11:48am
| 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
#3
#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.