mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-09 23:00:57 -05:00
finish implementation of per server top stats page
This commit is contained in:
@ -4,11 +4,11 @@ let isLoaderLoading = false;
|
||||
let loadUri = '';
|
||||
let loaderResponseId = '';
|
||||
|
||||
function initLoader(location, loaderId, count = 10) {
|
||||
function initLoader(location, loaderId, count = 10, start = count) {
|
||||
loadUri = location;
|
||||
loaderResponseId = loaderId;
|
||||
loadCount = count;
|
||||
loaderOffset = count;
|
||||
loaderOffset = start;
|
||||
setupListeners();
|
||||
}
|
||||
|
||||
|
@ -74,7 +74,9 @@ $(document).ready(function () {
|
||||
});
|
||||
|
||||
$('.top-players-link').click(function (event) {
|
||||
initLoader('/Stats/GetTopPlayersAsync?serverId=' + $(this).data('serverid'), $(this).attr('href'), 50);
|
||||
$($(this).attr('href')).html('');
|
||||
initLoader('/Stats/GetTopPlayersAsync?serverId=' + $(this).data('serverid'), $(this).attr('href'), 10, 0);
|
||||
loadMoreItems();
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user