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
...@@ -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();
......
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