diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-18 08:17:26 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-18 08:17:26 +0000 |
commit | 0ba8f441692c0e0e3aea99994e6bd7ee485383df (patch) | |
tree | f604f6520c4c3385b9555bcfb2b61d1e848abd24 | |
parent | 464b7a3acc48fe4c2457e2c6b5ca625c06fea3ee (diff) | |
download | brdo-0ba8f441692c0e0e3aea99994e6bd7ee485383df.tar.gz brdo-0ba8f441692c0e0e3aea99994e6bd7ee485383df.tar.bz2 |
- Patch #622550 by roborn: fixed block administration page table header sticking.
-rw-r--r-- | misc/tableheader.js | 6 |
1 files changed, 1 insertions, 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); }); }; |