a
This commit is contained in:
parent
78c9e18b4e
commit
38768f6b40
|
|
@ -268,6 +268,7 @@
|
|||
}
|
||||
|
||||
function setFeedback(type, msg) {
|
||||
alert(msg);
|
||||
feedback.innerHTML = `
|
||||
<div class="alert alert-${type} py-2">
|
||||
<i class="fas fa-${type === 'success' ? 'check-circle' : 'exclamation-circle'} me-2"></i>
|
||||
|
|
@ -340,16 +341,18 @@
|
|||
setFeedback('danger', '<?= _("Erreur réseau. Veuillez réessayer.") ?>');
|
||||
});
|
||||
|
||||
// xhr.open('POST', 'AAARemboursement/uploadged');
|
||||
xhr.open('POST', 'AAARemboursement/uploadged');
|
||||
setButtonLoading(true);
|
||||
// xhr.send(formData);
|
||||
xhr.send(formData);
|
||||
|
||||
/*
|
||||
const v_url = 'AAARemboursement/uploadged';
|
||||
const response = await fetch(v_url, { method: "POST", body: formData });
|
||||
if (response.ok) {
|
||||
const data = await response.json();
|
||||
console.log("✅ Succès :", data);
|
||||
}
|
||||
*/
|
||||
alert("Après send");
|
||||
});
|
||||
|
||||
|
|
@ -363,8 +366,7 @@
|
|||
}
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
|
||||
</script>
|
||||
<!-- FIN CLAUDE -->
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user