diff --git a/media/src/core/core.draw.js b/media/src/core/core.draw.js index 6df12971..9c9f2a4e 100644 --- a/media/src/core/core.draw.js +++ b/media/src/core/core.draw.js @@ -99,30 +99,32 @@ function _fnBuildHead( oSettings ) var iThs = $('th, td', oSettings.nTHead).length; var iCorrector = 0; var jqChildren; + var classes = oSettings.oClasses; + var columns = oSettings.aoColumns; /* If there is a header in place - then use it - otherwise it's going to get nuked... */ if ( iThs !== 0 ) { /* We've got a thead from the DOM, so remove hidden columns and apply width to vis cols */ - for ( i=0, iLen=oSettings.aoColumns.length ; itr>th, >tr>td').addClass( classes.sHeaderTH ); + $(oSettings.nTFoot).find('>tr>th, >tr>td').addClass( classes.sFooterTH ); /* Cache the footer elements */ if ( oSettings.nTFoot !== null ) { var anCells = _fnGetUniqueThs( oSettings, null, oSettings.aoFooter ); - for ( i=0, iLen=oSettings.aoColumns.length ; i