diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-15 10:43:00 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-15 10:43:00 +0000 |
commit | d2a9e857d94a2ca4ae5c9a91d2f11eaa37306f40 (patch) | |
tree | a77df3611e81eb8b94b09fe4155ed56cc7c4ddba /misc | |
parent | ed41a4efec630f675bdfc00f76e8be33c4a765d3 (diff) | |
download | brdo-d2a9e857d94a2ca4ae5c9a91d2f11eaa37306f40.tar.gz brdo-d2a9e857d94a2ca4ae5c9a91d2f11eaa37306f40.tar.bz2 |
#208991 by JirkaRybka: target sticky table headers to Drupal output tables only, so it won't sticky random tables in other site content
Diffstat (limited to 'misc')
-rw-r--r-- | misc/tableheader.js | 2 |
1 files changed, 1 insertions, 1 deletions
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('<table class="sticky-header"></table>').parent().css({ position: 'fixed', |