diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-02-14 13:52:40 -0500 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-02-14 13:52:40 -0500 |
commit | 92fca531f11dde34ed5c3e4538d5559e338adfbf (patch) | |
tree | 45fbc276a942b5218ca6fd5abc9dde67c29ac4b3 /misc | |
parent | 47c19b8bc695621693927224efc8100642302c61 (diff) | |
download | brdo-92fca531f11dde34ed5c3e4538d5559e338adfbf.tar.gz brdo-92fca531f11dde34ed5c3e4538d5559e338adfbf.tar.bz2 |
Issue #1319420 by nod_: Fixed multiple execution of tableselect.js with nested tables.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/tableselect.js | 3 |
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); } }; |