summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-10-02 07:09:51 +0000
committerDries Buytaert <dries@buytaert.net>2007-10-02 07:09:51 +0000
commit8e027a8b58ceedd9c58e3ad96ab70274e44d57c0 (patch)
tree92752ca21b9defce9327dfde9641981eff968fe1 /misc
parent55cc439990e27c75cc233a65dd23b363cabe66b4 (diff)
downloadbrdo-8e027a8b58ceedd9c58e3ad96ab70274e44d57c0.tar.gz
brdo-8e027a8b58ceedd9c58e3ad96ab70274e44d57c0.tar.bz2
- Patch #179937 by quicksketch: made the table header magic more robust. When a table disappears from the HTML, an error would otherwise be thrown.
Diffstat (limited to 'misc')
-rw-r--r--misc/tableheader.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/tableheader.js b/misc/tableheader.js
index ba076830d..0568e56a9 100644
--- a/misc/tableheader.js
+++ b/misc/tableheader.js
@@ -89,7 +89,7 @@ Drupal.behaviors.tableHeader = function (context) {
this.savedHeight = $(this).height();
});
- $(cells).each(function () {
+ $('table.sticky-table div.sticky-header').each(function () {
// Get position.
this.stickyPosition = $(this.cell).offset().top;
this.stickyMax = this.table.savedHeight;