diff --git a/misc/tableselect.js b/misc/tableselect.js index d085a9b..26a3e23 100644 --- a/misc/tableselect.js +++ b/misc/tableselect.js @@ -13,7 +13,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; });