Permalink
Browse files

Fix: When removing stripe classes, look only at the direct tbody tag,…

… not nested which could remove classes you want to keep!
  • Loading branch information...
1 parent bb5bb1c commit 91bac43b15813dfec3c2c519f69da41ebd4acfb7 @DataTables committed Mar 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 media/js/jquery.dataTables.js
@@ -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]) )

0 comments on commit 91bac43

Please sign in to comment.