summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2008-01-10 17:59:38 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2008-01-10 17:59:38 +0000
commit6d47c7c34851090ccbee0a4450f238126e945cfa (patch)
treeb8c5dacac5a86f390dc3a950b9469aa817ee8b8d /misc
parenta816feaddf335c67833785f13c52a546392ac8d7 (diff)
downloadbrdo-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.js7
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();