mirror of
https://github.com/DataTables/DataTables.git
synced 2024-11-28 10:24:10 +01:00
Fix: When using infinite scrolling and state saving, the saving of the draw start point is wrong, resulting in missed rows. When inifinite scrolling is enabled the state should be saved as starting at 0 always. Thanks to Jan (di4bl0s) for picking this up - 4388
This commit is contained in:
parent
501324a590
commit
7138587212
4
media/js/jquery.dataTables.js
vendored
4
media/js/jquery.dataTables.js
vendored
@ -5885,8 +5885,8 @@
|
||||
var i, iLen, sTmp;
|
||||
var sValue = "{";
|
||||
sValue += '"iCreate":'+ new Date().getTime()+',';
|
||||
sValue += '"iStart":'+ oSettings._iDisplayStart+',';
|
||||
sValue += '"iEnd":'+ oSettings._iDisplayEnd+',';
|
||||
sValue += '"iStart":'+ (oSettings.oScroll.bInfinite ? 0 : oSettings._iDisplayStart)+',';
|
||||
sValue += '"iEnd":'+ (oSettings.oScroll.bInfinite ? oSettings._iDisplayLength : oSettings._iDisplayEnd)+',';
|
||||
sValue += '"iLength":'+ oSettings._iDisplayLength+',';
|
||||
sValue += '"sFilter":"'+ encodeURIComponent(oSettings.oPreviousSearch.sSearch)+'",';
|
||||
sValue += '"sFilterEsc":'+ !oSettings.oPreviousSearch.bRegex+',';
|
||||
|
Loading…
Reference in New Issue
Block a user