From d2a9e857d94a2ca4ae5c9a91d2f11eaa37306f40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Tue, 15 Jan 2008 10:43:00 +0000 Subject: #208991 by JirkaRybka: target sticky table headers to Drupal output tables only, so it won't sticky random tables in other site content --- misc/tableheader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc') diff --git a/misc/tableheader.js b/misc/tableheader.js index 3143e14fc..33110873e 100644 --- a/misc/tableheader.js +++ b/misc/tableheader.js @@ -9,7 +9,7 @@ Drupal.behaviors.tableHeader = function (context) { // Keep track of all cloned table headers. var headers = []; - $('table thead:not(.tableHeader-processed)', context).each(function () { + $('table.sticky-enabled thead:not(.tableHeader-processed)', context).each(function () { // Clone thead so it inherits original jQuery properties. var headerClone = $(this).clone(true).insertBefore(this.parentNode).wrap('').parent().css({ position: 'fixed', -- cgit v1.2.3