diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 171996e1..abc8964f 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -2525,7 +2525,8 @@ "fnGetData": null, "fnSetData": null, "sSortDataType": 'std', - "nTh": nTh ? nTh : document.createElement('th') + "nTh": nTh ? nTh : document.createElement('th'), + "nTf": null }; oSettings.aoColumns.push( oCol ); @@ -3025,6 +3026,19 @@ { $('>tr>th', oSettings.nTFoot).addClass( oSettings.oClasses.sFooterTH ); } + + /* Cache the footer elements */ + if ( oSettings.nTFoot !== null ) + { + var anCells = _fnGetUniqueThs( oSettings, null, oSettings.aoFooter ); + for ( i=0, iLen=oSettings.aoColumns.length ; i