dsd
This commit is contained in:
parent
5f95e0a4cd
commit
a79a8d77ba
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue