web front design tweaks and favicon added

This commit is contained in:
RaidMax
2018-02-22 00:06:21 -06:00
parent aab891d14b
commit 20994f693c
23 changed files with 204 additions and 63 deletions

View File

@ -3,7 +3,7 @@
Expand alias tab if they have any
*/
$('#profile_aliases_btn').click(function (e) {
const aliases = $('#profile_aliases').text();
const aliases = $('#profile_aliases').text().trim();
if (aliases && aliases.length !== 0) {
$('#profile_aliases').slideToggle(150);
}
@ -69,6 +69,13 @@ $(document).ready(function () {
}
});
$.each(clientInfo.Meta, function (index, meta) {
if (!meta.key.includes("Event")) {
let metaString = `<div class="profile-meta-entry"><span class="profile-meta-value text-primary">${meta.value}</span><span class="profile-meta-title text-muted"> ${meta.key}</span></div>`;
$("#profile_meta").append(metaString);
}
});
$.each(clientInfo.Meta, function (index, meta) {
loadMeta(meta);

View File

@ -71,7 +71,10 @@ function refreshClientActivity() {
$('.server-history-row').each(function (index) {
let serverId = $(this).data("serverid");
$.get("/server/clientactivity/" + serverId)
$.get({
url: "/server/clientactivity/" + serverId,
cache: false
})
.done(function (response) {
$('#server_clientactivity_' + serverId).html(response);
})