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:
parent
a264ca66e9
commit
d6d24275df
4
media/js/jquery.dataTables.js
vendored
4
media/js/jquery.dataTables.js
vendored
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user