mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-18 11:08:22 -05:00
Re added mask command
Prune confirms completion Findall display previous name confirmation message sent after kick tempban/ban confirmation wording changes players page is now paginated
This commit is contained in:
@ -65,13 +65,24 @@
|
||||
}).done(function (data) { $(".loader").fadeOut(); });
|
||||
}
|
||||
|
||||
function getRecentPlayers(offset) {
|
||||
$("#playersTable").html("");
|
||||
$(".loader").fadeIn();
|
||||
|
||||
$.getJSON("/getplayer?recent=1&offset=" + offset, function (result) {
|
||||
$.each(result, function (i, player) {
|
||||
printPlayer(player, i);
|
||||
});
|
||||
}).done(function (data) { $(".loader").fadeOut(); });
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
if (parseGet('id') != "undefined")
|
||||
getPlayer('id', parseGet('id'));
|
||||
else if (parseGet('name') != "undefined")
|
||||
getPlayer('name', parseGet('name'));
|
||||
else {
|
||||
getPlayer('recent', '1');
|
||||
getRecentPlayers(0);
|
||||
}
|
||||
});
|
||||
|
||||
@ -99,6 +110,11 @@
|
||||
</div>
|
||||
<hr />
|
||||
|
||||
<div id="paginationButtons" class="table">
|
||||
<div id="previousPage" class="tableCell"><a href=# onclick="getRecentPlayers(getPrevPage())"><<</a></div>
|
||||
<div id="nextPage" class="tableCell"><a href=# onclick="getRecentPlayers(getNextPage())">>></a></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$('.searchButton').click(function () {
|
||||
if ($('.search').val().length > 0)
|
||||
|
Reference in New Issue
Block a user