Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Eliminating extra td elements in thead with 'left' or 'right' options
  • Loading branch information
jacelys committed Apr 30, 2014
commit 4ce127340836b69df56a3af8f85b39fadf3f2095
2 changes: 2 additions & 0 deletions js/dataTables.fixedHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 */
Expand Down