This commit is contained in:
asyncnomi 2023-01-08 23:08:41 +01:00
parent 4dd1827ee7
commit e3f4b5e9cf

View file

@ -52,6 +52,7 @@ $("#login-button").click(function (e) {
get_admin("prank");
} else {
show_page('#demande-page');
updateDemandes();
}
} else {
$('#error-message').empty();
@ -100,6 +101,7 @@ $("#register-button").click(function (e) {
get_admin("prank");
} else {
show_page('#demande-page');
updateDemandes();
}
} else {
$('#error-message-register').empty();
@ -128,6 +130,7 @@ $("#register-button").click(function (e) {
$("#prank-button").click(function () {
if (localStorage.getItem('token')) {
show_page('#demande-page');
updateDemandes();
}
else {
show_page('#login-page');
@ -143,6 +146,7 @@ $("#logo").click(function () {
}
else {
show_page('#demande-page');
updateDemandes();
}
}
else {