From d6d24275dfa41eb1cfeec226cf3ef9766f5c6950 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Tue, 6 Dec 2011 15:11:14 +0000 Subject: [PATCH] Fix: If there is an sClass defined for a column, and a footer element for the column, apply the sClass to it, just as we do to the header. --- media/js/jquery.dataTables.js | 4 ++++ media/src/core/core.draw.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index f9a2d114..54493cca 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -1106,6 +1106,10 @@ if ( typeof anCells[i] != 'undefined' ) { oSettings.aoColumns[i].nTf = anCells[i]; + if ( oSettings.aoColumns[i].sClass ) + { + $(anCells[i]).addClass( oSettings.aoColumns[i].sClass ); + } } } } diff --git a/media/src/core/core.draw.js b/media/src/core/core.draw.js index df3f96ea..33adf76c 100644 --- a/media/src/core/core.draw.js +++ b/media/src/core/core.draw.js @@ -187,6 +187,10 @@ function _fnBuildHead( oSettings ) if ( typeof anCells[i] != 'undefined' ) { oSettings.aoColumns[i].nTf = anCells[i]; + if ( oSettings.aoColumns[i].sClass ) + { + $(anCells[i]).addClass( oSettings.aoColumns[i].sClass ); + } } } }