1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-30 23:52:11 +01:00

Update media/src/core/core.sort.js

Forgot parameter to lastIndexOf
This commit is contained in:
Tim Tucker 2012-09-03 16:54:30 -03:00
parent 6a5c4cf261
commit e6e4205b02

View File

@ -408,7 +408,7 @@ function _fnSortingClasses( oSettings )
{
for ( i=0, iLen=nTds.length; i<iLen; i++ )
{
if ( nTds[i].className.lastIndexOf(sClass) != -1 )
if ( nTds[i].className.lastIndexOf(sClass, 0) != -1 )
{
nTds[i].className =
$.trim( nTds[i].className.replace( reClass, "" ) );