summaryrefslogtreecommitdiffstats
path: root/js/meals.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/meals.js')
-rw-r--r--js/meals.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/meals.js b/js/meals.js
index f283913..097d799 100644
--- a/js/meals.js
+++ b/js/meals.js
@@ -323,4 +323,15 @@ document.addEventListener("DOMContentLoaded", async () => {
// Setup side modal
const modals = document.querySelectorAll('.side-modal');
M.Sidenav.init(modals, { edge: 'left', draggable: false });
+ var elemsx = document.querySelectorAll('select');
+ var instancesx = M.FormSelect.init(elemsx);
+ var datepickerelems = document.querySelectorAll('.datepicker');
+ var today = new Date();
+ var datepickerinstances = M.Datepicker.init(datepickerelems, {
+ firstDay: 1,
+ minDate: today,
+ showDaysInNextAndPreviousMonths: true,
+ showClearBtn: true,
+ format: "dddd, dd. mmmm yyyy"
+ });
});