From 0ba8f441692c0e0e3aea99994e6bd7ee485383df Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 18 Dec 2009 08:17:26 +0000 Subject: - Patch #622550 by roborn: fixed block administration page table header sticking. --- misc/tableheader.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/misc/tableheader.js b/misc/tableheader.js index 0192d30b2..4efe26a43 100644 --- a/misc/tableheader.js +++ b/misc/tableheader.js @@ -14,9 +14,6 @@ Drupal.behaviors.tableHeader = { return; } - // Keep track of all cloned table headers. - var headers = []; - $('table.sticky-enabled thead', context).once('tableheader', function () { // Clone the table header so it inherits original jQuery properties. Hide // the table to avoid a flash of the header clone upon page load. @@ -26,7 +23,6 @@ Drupal.behaviors.tableHeader = { }); headerClone = $(headerClone)[0]; - headers.push(headerClone); // Store parent table. var table = $(this).parent('table')[0]; @@ -94,7 +90,7 @@ Drupal.behaviors.tableHeader = { // Track scrolling. Drupal.tableHeaderOnScroll = function () { - $(headers).each(function () { + $('table.sticky-header').each(function () { tracker(this); }); }; -- cgit v1.2.3