Commit 6a32af82 authored by Mat's avatar Mat
Browse files

hop

parent a406f1a2
......@@ -346,12 +346,9 @@ function proposeEndDay(groupe = null)
new Date(sd[0], (sd[1] > 0 ? sd[1]-1 : 11), sd[2]),
new Date(endDate.getFullYear(), endDate.getMonth(), endDate.getDate())
);
//return formatDateISO(endDate);
});
} else {
return new Date(today.setSeconds(today.getSeconds() + jourInSeconds(7)));
}
}
......@@ -374,8 +371,6 @@ createButton(function(){
form.querySelector('#lettre_startedAt').value = formatDateISO(new Date());
form.querySelector('#lettre_endedAt').value = formatDateISO(proposeEndDay());
console.log(proposeEndDay());
initDateRangeSlider(new Date(), proposeEndDay());
form.querySelector('#lettre_groupe').value = null;
......@@ -400,7 +395,6 @@ selectGroup.addEventListener('change', function()
inputSubject.value = inputSubject.value.replace(/\[Légu.*[\]] /, '');
inputSubject.value = inputSubject.value.replace(/^/, etiquette);
/*
* un groupe, c'est un jour de panier, ce qui permet de suggérer une date de fin
* on update le input et le slider
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment