mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-18 16:54:14 +01:00
Dev fix: Can't use '>' in the children() method for jQuery since it would try to match on the wrong elements. Need to add another 'children' call.
This commit is contained in:
parent
826545f1e5
commit
4c501bd2d8
4
media/js/jquery.dataTables.js
vendored
4
media/js/jquery.dataTables.js
vendored
@ -3059,7 +3059,7 @@
|
||||
/* Deal with the footer - add classes if required */
|
||||
if ( oSettings.oClasses.sFooterTH !== "" )
|
||||
{
|
||||
$(oSettings.nTFoot).children('tr>th').addClass( oSettings.oClasses.sFooterTH );
|
||||
$(oSettings.nTFoot).children('tr').children('th').addClass( oSettings.oClasses.sFooterTH );
|
||||
}
|
||||
|
||||
/* Cache the footer elements */
|
||||
@ -7193,7 +7193,7 @@
|
||||
|
||||
/* Remove row stripe classes if they are already on the table row */
|
||||
var bStripeRemove = false;
|
||||
var anRows = $(this).children('tbody>tr');
|
||||
var anRows = $(this).children('tbody').children('tr');
|
||||
for ( i=0, iLen=oSettings.asStripeClasses.length ; i<iLen ; i++ )
|
||||
{
|
||||
if ( anRows.filter(":lt(2)").hasClass( oSettings.asStripeClasses[i]) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user