Event:
@@ -317,7 +317,7 @@ function get_admin(type) {
`)
- } else if (activityData[entry].type = "treasure") {
+ } else if (activityData[entry].type == "treasure") {
$("#admin-content").prepend(`
Trésor:
@@ -642,7 +642,7 @@ $('#treasure-popup-button').click((e) => {
var tuid = $('#treasure-popup-uid').val();
if(tuid != '') {
indata.treasureUid = tuid;
- }
+ }
fr.addEventListener('load', () => {
indata.image = fr.result;
@@ -652,7 +652,7 @@ $('#treasure-popup-button').click((e) => {
data: JSON.stringify(indata),
contentType: "application/json; charset=utf-8",
dataType: "json",
-
+
success: function(data) {
if(data.success) {
updateDemandes();
@@ -664,7 +664,7 @@ $('#treasure-popup-button').click((e) => {
});
});
-
+
fr.readAsDataURL(f);
});
@@ -830,7 +830,7 @@ function updateDemandes() {
else
$elem.addClass('treasure-submitted');
$elem.find(".treasure-btn-submit").text('Editer la soumission');
-
+
$(``).insertAfter($elem.find('.treasure-desc'))
$(`${td[td_uid].desc}
`).insertAfter($elem.find('.treasure-desc'))
$(`Votre soumission :
`).insertAfter($elem.find('.treasure-desc'))
@@ -845,7 +845,7 @@ function updateDemandes() {
console.error(data.why);
}
}
-
+
});
}
}