summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--misc/tableselect.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/tableselect.js b/misc/tableselect.js
index 8cf7f36..f201a88 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);
}
};