Skip to content
Snippets Groups Projects
Commit 8e027a8b authored by Dries Buytaert's avatar Dries Buytaert
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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment