Skip to content

Commit

Permalink
Tracker replays order & Last Match msg
Browse files Browse the repository at this point in the history
  • Loading branch information
yohkaz committed Dec 5, 2020
1 parent 0a4ab72 commit 9b62b97
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/gui/last_match.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
document.getElementById("playersListButton").disabled = false;
document.getElementById("killfeedButton").disabled = false;
} else {
document.getElementById("authStatusMsg").textContent = 'Authentication required!';
document.getElementById("msg").textContent = 'Authentication required!';
}
}
checkAuthStatus();
Expand All @@ -41,6 +41,7 @@
return;
}

document.getElementById("msg").textContent = last_replay_data['filename'];
$('#table_players_list').DataTable({
data: last_replay_data['players'],
columns: [
Expand Down Expand Up @@ -126,7 +127,7 @@
<div class="text-center mt-4 mb-5">
<label class="h6 mb-4">
Last Match Details<br />
<small class="text-muted font-weight-bold" id="authStatusMsg"></small>
<small class="text-muted font-weight-bold" id="msg"></small>
</label><br />
<button type="button" id="playersListButton" class="btn btn-info" onclick="showPlayersList()" disabled>
Players List
Expand Down
Binary file modified src/gui/ressources/favicon.ico
Binary file not shown.
4 changes: 3 additions & 1 deletion src/gui/tracker.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@
tr.removeClass('shown');
} else {
// Open this row
row.child(row.data()[2].replace(/,/g, '<br />')).show();
replays = row.data()[2].split(',').reverse().join('<br />');
row.child(replays).show();
//row.child(row.data()[2].replace(/,/g, '<br />')).show();
tr.addClass('shown');
}
});
Expand Down

0 comments on commit 9b62b97

Please sign in to comment.