From 4ce127340836b69df56a3af8f85b39fadf3f2095 Mon Sep 17 00:00:00 2001 From: Joe Calandrino Date: Wed, 30 Apr 2014 17:26:03 -0400 Subject: [PATCH] Eliminating extra td elements in thead with 'left' or 'right' options --- js/dataTables.fixedHeader.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/dataTables.fixedHeader.js b/js/dataTables.fixedHeader.js index 048a3fb..58a766c 100644 --- a/js/dataTables.fixedHeader.js +++ b/js/dataTables.fixedHeader.js @@ -812,6 +812,7 @@ FixedHeader.prototype = { var sSelector = 'gt(' + (oCache.iCells - 1) + ')'; $('thead tr', nTable).each( function (k) { $('th:' + sSelector, this).remove(); + $('td:' + sSelector, this).remove(); } ); $('tfoot tr', nTable).each( function (k) { @@ -861,6 +862,7 @@ FixedHeader.prototype = { nTable.appendChild( $("tfoot", s.nTable).clone(true)[0] ); } $('thead tr th:lt('+(iCols-oCache.iCells)+')', nTable).remove(); + $('thead tr td:lt('+(iCols-oCache.iCells)+')', nTable).remove(); $('tfoot tr th:lt('+(iCols-oCache.iCells)+')', nTable).remove(); /* Remove unneeded cells */