diff options
author | David Rothstein <drothstein@gmail.com> | 2012-06-23 12:32:55 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2012-06-23 12:32:55 -0400 |
commit | efd12ac99d83f194f43dcdf612d6f0fd5c13e27f (patch) | |
tree | e11f2f3ba5ac94cfb962688480088994759ec974 /misc | |
parent | 708e903b27f90ea0c3824b03e6f3626634068ff8 (diff) | |
download | brdo-efd12ac99d83f194f43dcdf612d6f0fd5c13e27f.tar.gz brdo-efd12ac99d83f194f43dcdf612d6f0fd5c13e27f.tar.bz2 |
Issue #218470 by redndahead, casey, nod_, Albert Volkman | webernet: Fixed Floating tableheader: 'Select all' checkbox not updated.
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 5a88ac20c..fee63a9fd 100644 --- a/misc/tableselect.js +++ b/misc/tableselect.js @@ -17,7 +17,8 @@ Drupal.tableSelect = function () { var table = this, checkboxes, lastChecked; var strings = { 'selectAll': Drupal.t('Select all rows in this table'), 'selectNone': Drupal.t('Deselect all rows in this table') }; var updateSelectAll = function (state) { - $('th.select-all input:checkbox', table).each(function () { + // Update table's select-all checkbox (and sticky header's if available). + $(table).prev('table.sticky-header').andSelf().find('th.select-all input:checkbox').each(function() { $(this).attr('title', state ? strings.selectNone : strings.selectAll); this.checked = state; }); |