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

Dev fix: The last commit for fnUpdate wasn't quite complete - this commit is the correct one. Updating fnUpdate to be able to cope with bDeferRender

This commit is contained in:
Allan Jardine 2011-05-09 18:06:52 +01:00
parent d073e36c34
commit d242d9cad4

View File

@ -1931,20 +1931,20 @@
} }
} }
if ( oSettings.aoData[iRow].nTr !== null )
{
iVisibleColumn = _fnColumnIndexToVisible( oSettings, iColumn ); iVisibleColumn = _fnColumnIndexToVisible( oSettings, iColumn );
if ( iVisibleColumn !== null ) if ( iVisibleColumn !== null )
{
if ( oSettings.aoData[iRow].nTr !== null )
{ {
oSettings.aoData[iRow].nTr.getElementsByTagName('td')[iVisibleColumn].innerHTML = oSettings.aoData[iRow].nTr.getElementsByTagName('td')[iVisibleColumn].innerHTML =
sDisplay; sDisplay;
} }
}
else else
{ {
oSettings.aoData[iRow]._anHidden[iColumn].innerHTML = sDisplay; oSettings.aoData[iRow]._anHidden[iColumn].innerHTML = sDisplay;
} }
} }
}
else else
{ {
if ( mData.length != oSettings.aoColumns.length ) if ( mData.length != oSettings.aoColumns.length )
@ -1974,6 +1974,8 @@
} }
} }
if ( oSettings.aoData[iRow].nTr !== null )
{
iVisibleColumn = _fnColumnIndexToVisible( oSettings, i ); iVisibleColumn = _fnColumnIndexToVisible( oSettings, i );
if ( iVisibleColumn !== null ) if ( iVisibleColumn !== null )
{ {
@ -1986,6 +1988,7 @@
} }
} }
} }
}
/* Modify the search index for this row (strictly this is likely not needed, since fnReDraw /* Modify the search index for this row (strictly this is likely not needed, since fnReDraw
* will rebuild the search array - however, the redraw might be disabled by the user) * will rebuild the search array - however, the redraw might be disabled by the user)