|
|
@ -251,7 +251,8 @@ function get_admin(type) { |
|
|
}), |
|
|
}), |
|
|
contentType: "application/json; charset=utf-8", |
|
|
contentType: "application/json; charset=utf-8", |
|
|
dataType: "json", |
|
|
dataType: "json", |
|
|
|
|
|
async: false, |
|
|
|
|
|
|
|
|
success: function(data) { |
|
|
success: function(data) { |
|
|
if(data.success) { |
|
|
if(data.success) { |
|
|
if(data.state == "open") { |
|
|
if(data.state == "open") { |
|
|
@ -270,7 +271,7 @@ function get_admin(type) { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
$("#admin-content").append(` |
|
|
$("#admin-content").append(` |
|
|
<span class="prank"> |
|
|
<span class="prank"> |
|
|
<div id=prankDone>Nombre totale de missions achevées: ${doneCnt}</div> |
|
|
<div id=prankDone>Nombre totale de missions achevées: ${doneCnt}</div> |
|
|
@ -783,7 +784,7 @@ function updateDemandes() { |
|
|
token: localStorage.getItem('token'), |
|
|
token: localStorage.getItem('token'), |
|
|
type: "state" |
|
|
type: "state" |
|
|
}), |
|
|
}), |
|
|
|
|
|
|
|
|
success: function(data) { |
|
|
success: function(data) { |
|
|
if(data.success) { |
|
|
if(data.success) { |
|
|
if(data.state == "open") { |
|
|
if(data.state == "open") { |
|
|
|