Merge pull request #465 from priyankaa-patil/BugFixOnNavigationClick

Fixed issue - Datatable is displaying old value when user clicks next…
pull/467/head
Allan Jardine 5 years ago committed by GitHub
commit 41088795f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -85,6 +85,12 @@ $.fn.dataTableExt.oPagination.simple_incremental_bootstrap = {
}); });
$(nNext).click(function () { $(nNext).click(function () {
if(oSettings.aiDisplay.length < oSettings._iDisplayLength){
oSettings._iRecordsTotal = oSettings._iDisplayStart + oSettings.aiDisplay.length;
}else{
oSettings._iRecordsTotal = oSettings._iDisplayStart + oSettings._iDisplayLength + 1;
}
if (!(oSettings.fnDisplayEnd() == oSettings.fnRecordsDisplay() if (!(oSettings.fnDisplayEnd() == oSettings.fnRecordsDisplay()
|| ||
oSettings.aiDisplay.length < oSettings._iDisplayLength)) { oSettings.aiDisplay.length < oSettings._iDisplayLength)) {
@ -151,4 +157,4 @@ $.fn.dataTableExt.oPagination.simple_incremental_bootstrap = {
} }
} }
} }
}; };

Loading…
Cancel
Save