From 8e027a8b58ceedd9c58e3ad96ab70274e44d57c0 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 2 Oct 2007 07:09:51 +0000 Subject: - Patch #179937 by quicksketch: made the table header magic more robust. When a table disappears from the HTML, an error would otherwise be thrown. --- 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 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; -- cgit v1.2.3