From e9c129e2eed054cb2e312b88c150b3332572c82d Mon Sep 17 00:00:00 2001 From: Christian Seyfferth Date: Wed, 16 Jan 2019 11:19:30 +0100 Subject: [PATCH] Timepicker Init-Options --- app.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/app.js b/app.js index 0c67038..a0a55ff 100644 --- a/app.js +++ b/app.js @@ -23,15 +23,18 @@ if (!FileReader.prototype.readAsBinaryString) { reader.readAsArrayBuffer(file); } } + +var options = { + timepicker: { + twelveHour: false, + } +}; + document.addEventListener('DOMContentLoaded', function() { M.AutoInit(); + var elems = document.querySelectorAll('.timepicker'); + var timepickers = M.Timepicker.init(elems, options.timepicker); }); -/* $(document).ready(function () { - $('.modal').modal(); - $('.tabs').tabs(); - $('.fixed-action-btn').floatingActionButton(); -}); */ - //localStorage persistence var SHIFT_STORAGE_KEY = "dienstplan_chrosey";