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") {