some fixes

This commit is contained in:
asyncnomi 2023-01-02 23:35:30 +01:00
parent 54c58ab6ea
commit b58b20d9be

View file

@ -89,7 +89,7 @@ function get_admin(type) {
success: function (data) {
if(data.success) {
switch (type) {
case: "prank":
case "prank":
let doneCnt = 0;
let prankData = [];
for (prankUid in data.prankData) {
@ -99,7 +99,7 @@ function get_admin(type) {
prankData.sort((a, b) => Date(a.date) - Date(b.date));
for (entry in prankData) {
switch (prankData[entry].type) {
case: "crêpe":
case "crêpe":
if (prankData[entry].state == "pending"
|| prankData[entry].state == "accepted") {
$("#admin-content").insertAdjacentHTML("beforeend", `
@ -124,7 +124,7 @@ function get_admin(type) {
doneCnt++;
}
break;
case: "kidnap":
case "kidnap":
// Not Handle
break;
}
@ -135,7 +135,7 @@ function get_admin(type) {
</span>
`);
break;
case: "treasure":
case "treasure":
let treasureData = [];
for (treasureUid in data.treasureData) {
data.treasureData[treasureUid].treasureUid = treasureUid;
@ -163,7 +163,7 @@ function get_admin(type) {
}
}
break;
case: "activity":
case "activity":
$("#admin-content").insertAdjacentHTML("beforeend", `
<span id="addActivity" class="activity">
<label for="activityType">Choisir une option:</label>