diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-10 17:59:38 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-10 17:59:38 +0000 |
commit | 6d47c7c34851090ccbee0a4450f238126e945cfa (patch) | |
tree | b8c5dacac5a86f390dc3a950b9469aa817ee8b8d /misc | |
parent | a816feaddf335c67833785f13c52a546392ac8d7 (diff) | |
download | brdo-6d47c7c34851090ccbee0a4450f238126e945cfa.tar.gz brdo-6d47c7c34851090ccbee0a4450f238126e945cfa.tar.bz2 |
#194590 follow up by theborg, catch: avoid cloning the sticky table headers with the same id value
Diffstat (limited to 'misc')
-rw-r--r-- | misc/tableheader.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/tableheader.js b/misc/tableheader.js index c4c000f56..ed607e0f0 100644 --- a/misc/tableheader.js +++ b/misc/tableheader.js @@ -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(); |