1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-12-01 13:24:10 +01:00

Fix: State saving when using in combination with Ajax sourced data, wasn't restoring the paging state - 4490

This commit is contained in:
Allan Jardine 2011-03-23 19:50:13 +00:00
parent 77ba6c790a
commit a0967b7b14

View File

@ -2313,7 +2313,7 @@
*/ */
function _fnInitalise ( oSettings ) function _fnInitalise ( oSettings )
{ {
var i, iLen, bDefer=oSettings.bDeferLoading; var i, iLen, bDefer=oSettings.bDeferLoading, iAjaxStart=oSettings.iInitDisplayStart;
/* Ensure that the table data is fully initialised */ /* Ensure that the table data is fully initialised */
if ( oSettings.bInitialised === false ) if ( oSettings.bInitialised === false )
@ -2373,7 +2373,7 @@
/* Reset the init display for cookie saving. We've already done a filter, and /* Reset the init display for cookie saving. We've already done a filter, and
* therefore cleared it before. So we need to make it appear 'fresh' * therefore cleared it before. So we need to make it appear 'fresh'
*/ */
oSettings.iInitDisplayStart = oSettings._iDisplayStart; oSettings.iInitDisplayStart = iAjaxStart;
if ( oSettings.oFeatures.bSort ) if ( oSettings.oFeatures.bSort )
{ {