Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix: IE6/7 when scrolling is enabled could loose the sorting event du…

…e to the way cloned nodes work in those browsers. Note that this was introduced after 1.9.0. Related - jQuery bug 10437 - http://bugs.jquery.com/ticket/10437
  • Loading branch information...
commit 225fc0835cd0580d330fe394008f76e91be992dc 1 parent 447a586
Allan Jardine DataTables authored committed
6 media/js/jquery.dataTables.js
View
@@ -3072,14 +3072,14 @@
/* Remove the old minimised thead and tfoot elements in the inner table */
$(o.nTable).children('thead, tfoot').remove();
-
+
/* Clone the current header and footer elements and then place it into the inner table */
- nTheadSize = o.nTHead.cloneNode(true);
+ nTheadSize = $(o.nTHead).clone()[0];
o.nTable.insertBefore( nTheadSize, o.nTable.childNodes[0] );
if ( o.nTFoot !== null )
{
- nTfootSize = o.nTFoot.cloneNode(true);
+ nTfootSize = $(o.nTFoot).clone()[0];
o.nTable.insertBefore( nTfootSize, o.nTable.childNodes[1] );
}
6 media/src/core/core.scrolling.js
View
@@ -193,14 +193,14 @@ function _fnScrollDraw ( o )
/* Remove the old minimised thead and tfoot elements in the inner table */
$(o.nTable).children('thead, tfoot').remove();
-
+
/* Clone the current header and footer elements and then place it into the inner table */
- nTheadSize = o.nTHead.cloneNode(true);
+ nTheadSize = $(o.nTHead).clone()[0];
o.nTable.insertBefore( nTheadSize, o.nTable.childNodes[0] );
if ( o.nTFoot !== null )
{
- nTfootSize = o.nTFoot.cloneNode(true);
+ nTfootSize = $(o.nTFoot).clone()[0];
o.nTable.insertBefore( nTfootSize, o.nTable.childNodes[1] );
}
Please sign in to comment.
Something went wrong with that request. Please try again.