Commit 92fca531 authored by webchick's avatar webchick

Issue #1319420 by nod_: Fixed multiple execution of tableselect.js with nested tables.

parent 47c19b8b
......@@ -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);
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment