mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°7639 - Switching tab starts reloading the data table (#651)
This commit is contained in:
@@ -55,7 +55,7 @@ $.fn.dataTable.pipeline = function (opts, initJson) {
|
|||||||
// API requested that the cache be cleared
|
// API requested that the cache be cleared
|
||||||
ajax = true;
|
ajax = true;
|
||||||
settings.clearCache = false;
|
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
|
// outside cached data - need to make a request
|
||||||
ajax = true;
|
ajax = true;
|
||||||
} else if (JSON.stringify(request.order) !== JSON.stringify(cacheLastRequest.order) ||
|
} else if (JSON.stringify(request.order) !== JSON.stringify(cacheLastRequest.order) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user