diff options
author | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2020-03-04 23:56:37 +0100 |
---|---|---|
committer | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2020-03-04 23:56:37 +0100 |
commit | 1836820ff66d474e5326b99213b2cf56ab611df8 (patch) | |
tree | 3319be247bf7e0cb70a5f91f58319008295a1e86 /js | |
parent | rewrite of meals.js (diff) | |
download | beziapp-1836820ff66d474e5326b99213b2cf56ab611df8.tar beziapp-1836820ff66d474e5326b99213b2cf56ab611df8.tar.gz beziapp-1836820ff66d474e5326b99213b2cf56ab611df8.tar.bz2 beziapp-1836820ff66d474e5326b99213b2cf56ab611df8.tar.lz beziapp-1836820ff66d474e5326b99213b2cf56ab611df8.tar.xz beziapp-1836820ff66d474e5326b99213b2cf56ab611df8.tar.zst beziapp-1836820ff66d474e5326b99213b2cf56ab611df8.zip |
Diffstat (limited to 'js')
-rw-r--r-- | js/meals.js | 11 |
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" + }); }); |