more api tweaks
removed WebfrontSettings IW4MAdminSettings are only generated when the file does not exist, placeholder values stored in DefaultSettings.json
This commit is contained in:
@ -25,6 +25,11 @@
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
if ($('#console_command_button').length === 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$('#console_command_button').click(function (e) {
|
||||
executeCommand();
|
||||
});
|
||||
|
@ -49,7 +49,7 @@ if ($('#penalty_table').length === 1) {
|
||||
.off('scroll', ScrollHandler)
|
||||
.on('scroll', ScrollHandler);
|
||||
|
||||
$('#load_penalties_button').hover(function () {
|
||||
$('#load_penalties_button').click(function () {
|
||||
loadMorePenalties();
|
||||
});
|
||||
});
|
||||
|
@ -168,7 +168,7 @@ function loadMeta(meta) {
|
||||
// it's a penalty
|
||||
if (meta.class.includes("Penalty")) {
|
||||
if (meta.value.punisherId !== clientInfo.clientId) {
|
||||
const timeRemaining = meta.value.type == 'TempBan' && meta.value.timeRemaining.length > 0 ?
|
||||
const timeRemaining = meta.value.type === 'TempBan' && meta.value.timeRemaining.length > 0 ?
|
||||
`(${meta.value.timeRemaining} remaining)` :
|
||||
'';
|
||||
eventString = `<div><span class="penalties-color-${meta.value.type.toLowerCase()}">${penaltyToName(meta.value.type)}</span> by <span class="text-highlight"> <a class="link-inverse" href="${meta.value.punisherId}">${meta.value.punisherName}</a></span > for <span style="color: white; ">${meta.value.offense}</span><span class="text-muted"> ${timeRemaining}</span></div>`;
|
||||
|
Reference in New Issue
Block a user