mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-18 16:54:14 +01:00
Fix: fnDeleteRow could cause the page to drop back by one - 9505
This commit is contained in:
parent
49fe9f2e0e
commit
b64dda47c3
4
media/js/jquery.dataTables.js
vendored
4
media/js/jquery.dataTables.js
vendored
@ -5194,8 +5194,8 @@
|
||||
fnCallBack.call( this, oSettings, oData );
|
||||
}
|
||||
|
||||
/* Check for an 'overflow' they case for dislaying the table */
|
||||
if ( oSettings._iDisplayStart >= oSettings.aiDisplay.length )
|
||||
/* Check for an 'overflow' they case for displaying the table */
|
||||
if ( oSettings._iDisplayStart >= oSettings.fnRecordsDisplay() )
|
||||
{
|
||||
oSettings._iDisplayStart -= oSettings._iDisplayLength;
|
||||
if ( oSettings._iDisplayStart < 0 )
|
||||
|
@ -414,8 +414,8 @@ this.fnDeleteRow = function( mTarget, fnCallBack, bRedraw )
|
||||
fnCallBack.call( this, oSettings, oData );
|
||||
}
|
||||
|
||||
/* Check for an 'overflow' they case for dislaying the table */
|
||||
if ( oSettings._iDisplayStart >= oSettings.aiDisplay.length )
|
||||
/* Check for an 'overflow' they case for displaying the table */
|
||||
if ( oSettings._iDisplayStart >= oSettings.fnRecordsDisplay() )
|
||||
{
|
||||
oSettings._iDisplayStart -= oSettings._iDisplayLength;
|
||||
if ( oSettings._iDisplayStart < 0 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user