mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-17 15:54:14 +01:00
Fix: Hold the scrolling position if holding the draw position
* This fix was partly committed earlier by mistake [b7feaa2] * The fix is simply to store the draw hold state and make use of it in the draw scroll callback.
This commit is contained in:
parent
501ed72cee
commit
96b7ef9176
@ -1 +1 @@
|
|||||||
0ebb60d6ae47e378a970b3a277f14ae09bce9c42
|
014b64c0781cdf68073d51d5ca8e46a45425bbbd
|
||||||
|
5
media/js/jquery.dataTables.js
vendored
5
media/js/jquery.dataTables.js
vendored
@ -2003,11 +2003,14 @@
|
|||||||
settings.aiDisplay = settings.aiDisplayMaster.slice();
|
settings.aiDisplay = settings.aiDisplayMaster.slice();
|
||||||
}
|
}
|
||||||
|
|
||||||
settings._drawHold = holdPosition;
|
|
||||||
if ( holdPosition !== true ) {
|
if ( holdPosition !== true ) {
|
||||||
settings._iDisplayStart = 0;
|
settings._iDisplayStart = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Let any modules know about the draw hold position state (used by
|
||||||
|
// scrolling internally)
|
||||||
|
settings._drawHold = holdPosition;
|
||||||
|
|
||||||
_fnDraw( settings );
|
_fnDraw( settings );
|
||||||
|
|
||||||
settings._drawHold = false;
|
settings._drawHold = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user