Skip to content
Snippets Groups Projects
Commit 0ba8f441 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #622550 by roborn: fixed block administration page table header sticking.

parent 464b7a3a
Branches
Tags
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
......@@ -14,9 +14,6 @@ Drupal.behaviors.tableHeader = {
return;
}
// Keep track of all cloned table headers.
var headers = [];
$('table.sticky-enabled thead', context).once('tableheader', function () {
// Clone the table header so it inherits original jQuery properties. Hide
// the table to avoid a flash of the header clone upon page load.
......@@ -26,7 +23,6 @@ Drupal.behaviors.tableHeader = {
});
headerClone = $(headerClone)[0];
headers.push(headerClone);
// Store parent table.
var table = $(this).parent('table')[0];
......@@ -94,7 +90,7 @@ Drupal.behaviors.tableHeader = {
// Track scrolling.
Drupal.tableHeaderOnScroll = function () {
$(headers).each(function () {
$('table.sticky-header').each(function () {
tracker(this);
});
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment