From 71899b0b65b3839d23e5279de726cca2ff21c4fe Mon Sep 17 00:00:00 2001 From: Nathaniel <catch@35733.no-reply.drupal.org> Date: Mon, 27 Feb 2012 12:43:52 +0900 Subject: [PATCH] Issue #218470 by redndahead, casey: Fixed Floating tableheader: 'Select all' checkbox not updated. --- core/misc/tableselect.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/misc/tableselect.js b/core/misc/tableselect.js index 5a88ac20ccc4..fee63a9fd8bd 100644 --- a/core/misc/tableselect.js +++ b/core/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; }); -- GitLab