1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-03-15 16:29:16 +01:00

Update media/src/api/api.methods.js

Properly select every nth row for adding classes
This commit is contained in:
Tim Tucker 2012-08-31 17:45:15 -03:00
parent 82fad5ca50
commit 845eaaab67

View File

@ -1,4 +1,3 @@
/**
* Perform a jQuery selector action on the table's TR elements (from the tbody) and
* return the resulting jQuery object.
@ -575,7 +574,7 @@ this.fnDestroy = function ( bRemove )
var anRows = $(nBody).children('tr');
for ( i=0 ; i<iLen ; i++ )
{
anRows.filter(":nth-child(" + i + ")").addClass( oSettings.asDestroyStripes[i] );
anRows.filter(':nth-child(' + iLen + 'n + ' + i + ')').addClass( oSettings.asDestroyStripes[i] );
}
}