Changed player-table error display

This commit is contained in:
Rsl1122 2019-09-26 11:25:07 +03:00
parent 2fb979fc95
commit 4893c2dd5b
2 changed files with 2 additions and 8 deletions

View File

@ -288,10 +288,7 @@
order: [[5, "desc"]]
})
} else if (error) {
$('.player-table').DataTable({
columns: [{title: "Error"}],
data: [["Failed to load Players table data: " + error]]
})
$('.player-table').text("Failed to load Players table data: " + error);
}
});
} catch (loadingError) {

View File

@ -1587,10 +1587,7 @@
order: [[5, "desc"]]
})
} else if (error) {
$('.player-table').DataTable({
columns: [{title: "Error"}],
data: [["Failed to load Players table data: " + error]]
})
$('.player-table').text("Failed to load Players table data: " + error);
}
});
jsonRequest("../v1/kills?server=${serverName}", loadPlayerKills);