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

Fix: A stored display start (iInitDisplayStart) of 0 would cause an undesired effect

This commit is contained in:
Allan Jardine 2012-01-15 10:43:01 +00:00
parent 91c63b8ad5
commit 1e7f3066f9
2 changed files with 2 additions and 2 deletions

View File

@ -1292,7 +1292,7 @@
oSettings.bDrawing = true;
/* Check and see if we have an initial draw position from state saving */
if ( oSettings.iInitDisplayStart && oSettings.iInitDisplayStart != -1 )
if ( oSettings.iInitDisplayStart !== undefined && oSettings.iInitDisplayStart != -1 )
{
if ( oSettings.oFeatures.bServerSide )
{

View File

@ -323,7 +323,7 @@ function _fnDraw( oSettings )
oSettings.bDrawing = true;
/* Check and see if we have an initial draw position from state saving */
if ( oSettings.iInitDisplayStart && oSettings.iInitDisplayStart != -1 )
if ( oSettings.iInitDisplayStart !== undefined && oSettings.iInitDisplayStart != -1 )
{
if ( oSettings.oFeatures.bServerSide )
{