Commit cb2eac8d by crosf32

fix flatpickr minDate

parent 177f7aaa
......@@ -403,13 +403,15 @@
flatpickr(document.querySelector('#myDatepicker'), {
dateFormat: 'm/d/Y',
minDate: date.getMinutes() + '/' + date.getMonth() + '/' + date.getFullYear(),
locale: 'fr',
minDate: 'today',
enableTime: false,
onClose: this.eventAddDate
})
flatpickr(document.querySelector('#timepicker'), {
dateFormat: 'H:i',
locale: 'fr',
noCalendar: true,
enableTime: true,
onClose: this.eventAddHour
......
......@@ -49,6 +49,7 @@
<script src="../node_modules/moment/min/moment.min.js"></script>
<script src="../node_modules/moment/min/moment-with-locales.js"></script>
<script src="../node_modules/flatpickr/dist/flatpickr.js"></script>
<script src="../node_modules/flatpickr/dist/l10n/fr.js"></script>
<script src="../dist/js/doodle.js" type="text/javascript"></script>
<script src="../test/js/app.js" type="text/javascript"></script>
......
Markdown is supported
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