From 932d035cd82bb424cb69f582a7e923a8e518fa96 Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Tue, 10 Jan 2023 09:53:21 +0100 Subject: [PATCH] bla --- static/js/main.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/static/js/main.js b/static/js/main.js index e62256a..c394bdd 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -251,7 +251,8 @@ function get_admin(type) { }), contentType: "application/json; charset=utf-8", dataType: "json", - + async: false, + success: function(data) { if(data.success) { if(data.state == "open") { @@ -270,7 +271,7 @@ function get_admin(type) { } } }); - + $("#admin-content").append(`
Nombre totale de missions achevées: ${doneCnt}
@@ -783,7 +784,7 @@ function updateDemandes() { token: localStorage.getItem('token'), type: "state" }), - + success: function(data) { if(data.success) { if(data.state == "open") {