1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-02-19 17:54:14 +01:00

Fix: When removing stripe classes, look only at the direct tbody tag, not nested which could remove classes you want to keep!

This commit is contained in:
Allan Jardine 2011-03-02 19:08:20 +00:00
parent bb5bb1c37f
commit 91bac43b15

View File

@ -6639,7 +6639,7 @@
/* Remove row stripe classes if they are already on the table row */
var bStripeRemove = false;
var anRows = $('tbody>tr', this);
var anRows = $('>tbody>tr', this);
for ( i=0, iLen=oSettings.asStripClasses.length ; i<iLen ; i++ )
{
if ( anRows.filter(":lt(2)").hasClass( oSettings.asStripClasses[i]) )