summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/tableselect.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/tableselect.js b/misc/tableselect.js
index 8cf7f3622..f201a88b0 100644
--- a/misc/tableselect.js
+++ b/misc/tableselect.js
@@ -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);
}
};