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

6.x
Gábor Hojtsy 2008-01-10 17:59:38 +00:00
parent a816feaddf
commit 6d47c7c348
1 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,13 @@ Drupal.behaviors.tableHeader = function (context) {
visibility: 'hidden',
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().
$('tbody', headerClone).remove();
$('caption', headerClone).remove();