This commit is contained in:
asyncnomi 2023-01-03 23:40:55 +01:00
parent 3dd6a09845
commit 3d06efd8e3

View file

@ -130,8 +130,8 @@ function get_admin(type) {
</span>
<span class="prank-btn">
<div class="prank-btn-accept" style="display: ${(prankData[entry].state == "Accepted" && prankData[entry].manageBy == localStorage.getItem("user")) ? "none" : "flex"};">${(prankData[entry].state == "Pending") ? "Accepter" : "Récupérer (accepté par: "+prankData[entry].manageBy+")"}</div>
<div class="prank-btn-refused">Refuser</div>
<div class="prank-btn-done" style="display: ${(prankData[entry].state == "Accepted" && prankData[entry].manageBy == localStorage.getItem("user")) ? "flex" : "none"};">Done</div>
<div class="prank-btn-refused">Refuser</div>
</span>
</span>
`)
@ -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].css("display", "none");
btnElems.children[2].css("display", "flex");
} else {
if (data.why == "Not authentificated") {
show_page('#login-page');