Commit 8e027a8b authored by Dries's avatar Dries
Browse files

- Patch #179937 by quicksketch: made the table header magic more robust. When...

- Patch #179937 by quicksketch: made the table header magic more robust.  When a table disappears from the HTML, an error would otherwise be thrown.
parent 55cc4399
...@@ -89,7 +89,7 @@ Drupal.behaviors.tableHeader = function (context) { ...@@ -89,7 +89,7 @@ Drupal.behaviors.tableHeader = function (context) {
this.savedHeight = $(this).height(); this.savedHeight = $(this).height();
}); });
$(cells).each(function () { $('table.sticky-table div.sticky-header').each(function () {
// Get position. // Get position.
this.stickyPosition = $(this.cell).offset().top; this.stickyPosition = $(this.cell).offset().top;
this.stickyMax = this.table.savedHeight; this.stickyMax = this.table.savedHeight;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment