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 ); + } } } }