This commit is contained in:
asyncnomi 2023-01-03 20:24:31 +01:00
parent ff636bc355
commit 5ddb074394

View file

@ -243,7 +243,11 @@ function get_admin(type) {
}
refreshListener();
} else {
alert(data.why);
if (data.why == "Not authentificated") {
show_page('#login-page');
} else {
alert(data.why);
}
}
}
});
@ -269,7 +273,11 @@ function refreshListener() {
btnElems.children()[0].style.display = "none";
btnElems.children()[2].style.display = "flex";
} else {
alert(data.why);
if (data.why == "Not authentificated") {
show_page('#login-page');
} else {
alert(data.why);
}
}
}
});
@ -292,7 +300,11 @@ function refreshListener() {
if(data.success) {
$("#"+uid).remove();
} else {
alert(data.why);
if (data.why == "Not authentificated") {
show_page('#login-page');
} else {
alert(data.why);
}
}
}
});
@ -316,7 +328,11 @@ function refreshListener() {
$("#"+uid).remove();
$("#prankDone").innerHTML = parseInt($("#prankDone").innerHTML) + 1;
} else {
alert(data.why);
if (data.why == "Not authentificated") {
show_page('#login-page');
} else {
alert(data.why);
}
}
}
});
@ -339,7 +355,11 @@ function refreshListener() {
if(data.success) {
$("#"+uid).remove();
} else {
alert(data.why);
if (data.why == "Not authentificated") {
show_page('#login-page');
} else {
alert(data.why);
}
}
}
});
@ -362,7 +382,11 @@ function refreshListener() {
if(data.success) {
$("#"+uid).remove();
} else {
alert(data.why);
if (data.why == "Not authentificated") {
show_page('#login-page');
} else {
alert(data.why);
}
}
}
});
@ -391,7 +415,11 @@ function refreshListener() {
if(data.success) {
alert("Update réussie")
} else {
alert(data.why);
if (data.why == "Not authentificated") {
show_page('#login-page');
} else {
alert(data.why);
}
}
}
});
@ -413,7 +441,11 @@ function refreshListener() {
if(data.success) {
$("#"+uid).remove();
} else {
alert(data.why);
if (data.why == "Not authentificated") {
show_page('#login-page');
} else {
alert(data.why);
}
}
}
});
@ -447,7 +479,11 @@ function refreshListener() {
if(data.success) {
get_admin("activity");
} else {
alert(data.why);
if (data.why == "Not authentificated") {
show_page('#login-page');
} else {
alert(data.why);
}
}
}
});