- Patch #1319420 by nod_: multiple execution of tableselect.js with nested tables.
parent
f7daf3453b
commit
7500befb81
|
@ -2,7 +2,8 @@
|
|||
|
||||
Drupal.behaviors.tableSelect = {
|
||||
attach: function (context, settings) {
|
||||
$('table:has(th.select-all)', context).once('table-select', Drupal.tableSelect);
|
||||
// Select the inner-most table in case of nested tables.
|
||||
$('th.select-all', context).closest('table').once('table-select', Drupal.tableSelect);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue