diff --git a/static/js/main.js b/static/js/main.js index a3947ec..59fc839 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}