Skip to content
Snippets Groups Projects
Commit 6d47c7c3 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#194590 follow up by theborg, catch: avoid cloning the sticky table headers with the same id value

parent a816fead
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
...@@ -16,6 +16,13 @@ Drupal.behaviors.tableHeader = function (context) { ...@@ -16,6 +16,13 @@ Drupal.behaviors.tableHeader = function (context) {
visibility: 'hidden', visibility: 'hidden',
top: '0px' top: '0px'
}); });
// Sets an id for cloned table header.
var headerID = headerClone.attr('id');
if (headerID != '') {
headerClone.attr('id', headerID + '-header');
}
// Everything except thead must be removed. See theme_table(). // Everything except thead must be removed. See theme_table().
$('tbody', headerClone).remove(); $('tbody', headerClone).remove();
$('caption', headerClone).remove(); $('caption', headerClone).remove();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment