This commit is contained in:
johan 2023-01-10 11:51:10 +01:00
parent 5f95e0a4cd
commit a79a8d77ba

View file

@ -721,6 +721,7 @@ $('#treasure-popup-button').click((e) => {
fr.readAsDataURL(f);
});
function refreshCrepe() {
$('#demande-button').click(function () {
amount = $('#demande-amount').val();
if (amount > 9) {
@ -766,6 +767,7 @@ $('#demande-button').click(function () {
}
});
});
}
var saved_form = $('#demande-form').html();
@ -791,6 +793,7 @@ function updateDemandes() {
if(data.success) {
if(data.state == "open") {
$('#demande-form').html(saved_form);
refreshCrepe();
} else {
$('#demande-form').html('<h2>Les commandes sont fermés pour le moment mais on revient vite !</h2>');
}
@ -1007,6 +1010,7 @@ $(window).on("load", function() {
}
updateNextActivity();
refreshCrepe();
/* load timer */
window.setInterval(function() {