1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

improve loading of recent clients

This commit is contained in:
RaidMax
2022-04-28 11:42:23 -05:00
parent d926901ffa
commit dc07e72fb3
11 changed files with 49 additions and 56 deletions

View File

@ -14,11 +14,20 @@ function initLoader(location, loaderId, count = 10, start = count, additional =
loaderOffset = start;
additionalParams = additional;
setupMonitor();
try {
setupMonitor();
}
catch {
// ignored (can happen when the action modal loader exists but no page level loader does)
}
$('#loaderLoad').click(function () {
loadMoreItems();
});
$('.loader-load-more').click(function() {
loadMoreItems();
})
}
function setupMonitor() {