N°7639 - Switching tab starts reloading the data table (#651)

This commit is contained in:
Anne-Catherine
2024-09-18 10:56:58 +02:00
committed by GitHub
parent 8c5b919e72
commit cbbb4cdb8c

View File

@@ -55,7 +55,7 @@ $.fn.dataTable.pipeline = function (opts, initJson) {
// API requested that the cache be cleared
ajax = true;
settings.clearCache = false;
} else if (cacheLower < 0 || requestStart < cacheLower || requestEnd > cacheUpper) {
} else if (cacheLower < 0 || requestStart < cacheLower || (requestEnd > cacheUpper && cacheUpper < settings._iRecordsTotal)) {
// outside cached data - need to make a request
ajax = true;
} else if (JSON.stringify(request.order) !== JSON.stringify(cacheLastRequest.order) ||