This commit is contained in:
asyncnomi 2023-01-03 23:44:30 +01:00
parent 3d06efd8e3
commit a098c71b7b

View file

@ -220,7 +220,7 @@ function get_admin(type) {
</span>
</span>
`)
} else if (activityData[entry].type = "treasure") {
} else if (activityData[entry].type = "tr<div class="prank-btn-done" style="display: ${(prankData[entry].state == "Accepted" && prankData[entry].manageBy == localStorage.getItem("user")) ? "flex" : "none"};">Done</div>easure") {
$("#admin-content").prepend(`
<span id="${activityData[entry].activityUid}" class="activity">
<div class="activity-title">Trésor: <textarea class="admin-textarea">${activityData[entry].title}</textarea></div>
@ -270,8 +270,8 @@ function refreshListener() {
success: function (data) {
if(data.success) {
let btnElems = $("#"+uid).children()[6];
btnElems.children[0].css("display", "none");
btnElems.children[2].css("display", "flex");
btnElems.children[0].style.display = "none";
btnElems.children[2].style.display = "flex";
} else {
if (data.why == "Not authentificated") {
show_page('#login-page');