diff --git a/static/js/main.js b/static/js/main.js index c394bdd..59fc839 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -784,7 +784,9 @@ function updateDemandes() { token: localStorage.getItem('token'), type: "state" }), - + contentType: "application/json; charset=utf-8", + dataType: "json", + success: function(data) { if(data.success) { if(data.state == "open") {