From ff1722f9961fa349fa9412fb5db599bae1136918 Mon Sep 17 00:00:00 2001 From: Amadeusz Iwanowski Date: Thu, 14 Jun 2018 12:18:40 +0200 Subject: [PATCH 1/6] Made clonedHeader's ids unique Cloning the header can result in generating tags with duplicate ids. This change adds suffixes to all ids in tags within the $clonedHeader. --- demo/bootstrap.html | 4 ++-- js/jquery.stickytableheaders.js | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/demo/bootstrap.html b/demo/bootstrap.html index d190b99..c0d04ff 100644 --- a/demo/bootstrap.html +++ b/demo/bootstrap.html @@ -38,9 +38,9 @@

Twitter Bootstrap Demo

There is also a bug in IE7 that causes the leftmost column to resize when scrolling. Consider using conditional comments (see source) to make sure the plugin is not loaded in this browser.

- + - + diff --git a/js/jquery.stickytableheaders.js b/js/jquery.stickytableheaders.js index 4d742f1..f84564a 100644 --- a/js/jquery.stickytableheaders.js +++ b/js/jquery.stickytableheaders.js @@ -63,6 +63,7 @@ base.$originalHeader.addClass('tableFloatingHeaderOriginal'); + base.changeClonedHeaderIds(base.$clonedHeader); base.$originalHeader.after(base.$clonedHeader); base.$printStyle = $('
LabelLabel Layout width Column width Gutter width