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:
parent
77ba6c790a
commit
a0967b7b14
4
media/js/jquery.dataTables.js
vendored
4
media/js/jquery.dataTables.js
vendored
@ -2313,7 +2313,7 @@
|
||||
*/
|
||||
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 */
|
||||
if ( oSettings.bInitialised === false )
|
||||
@ -2373,7 +2373,7 @@
|
||||
/* 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'
|
||||
*/
|
||||
oSettings.iInitDisplayStart = oSettings._iDisplayStart;
|
||||
oSettings.iInitDisplayStart = iAjaxStart;
|
||||
|
||||
if ( oSettings.oFeatures.bSort )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user