1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-18 11:52:11 +01:00

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.

This commit is contained in:
Allan Jardine 2011-12-06 15:11:14 +00:00
parent a264ca66e9
commit d6d24275df
2 changed files with 8 additions and 0 deletions

View File

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

View File

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