mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 07:13:58 -05:00
Add automated ban offense for anti-cheat
add EFClientStatHistory and EFClientAverageStatHistory for tracking change of stats over time
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
let offset = 15;
|
||||
let loadCount = 15;
|
||||
let isLoading = false;
|
||||
let loaderOffset = 25;
|
||||
let loadCount = 25;
|
||||
let isLoaderLoading = false;
|
||||
let loadUri = '';
|
||||
let loaderResponseId = '';
|
||||
|
||||
@ -11,26 +11,26 @@ function initLoader(location, loaderId) {
|
||||
}
|
||||
|
||||
function loadMoreItems() {
|
||||
if (isLoading) {
|
||||
if (isLoaderLoading) {
|
||||
return false;
|
||||
}
|
||||
|
||||
showLoader();
|
||||
isLoading = true;
|
||||
$.get(loadUri, { offset: offset, count : loadCount })
|
||||
isLoaderLoading = true;
|
||||
$.get(loadUri, { offset: loaderOffset, count : loadCount })
|
||||
.done(function (response) {
|
||||
$(loaderResponseId).append(response);
|
||||
if (response.trim().length === 0) {
|
||||
staleLoader();
|
||||
}
|
||||
hideLoader();
|
||||
isLoading = false;
|
||||
isLoaderLoading = false;
|
||||
})
|
||||
.fail(function (jqxhr, statis, error) {
|
||||
errorLoader();
|
||||
isLoading = false;
|
||||
isLoaderLoading = false;
|
||||
});
|
||||
offset += loadCount;
|
||||
loaderOffset += loadCount;
|
||||
}
|
||||
|
||||
function setupListeners() {
|
||||
|
Reference in New Issue
Block a user