From a531c5e12a65ac7c216bb3f91e510c1d31fbb06e Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Tue, 21 Jul 2020 21:47:09 +0200 Subject: static files, last improvements --- accounts/templates/accounts/index.html | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'accounts/templates') diff --git a/accounts/templates/accounts/index.html b/accounts/templates/accounts/index.html index 01240ad..2733050 100644 --- a/accounts/templates/accounts/index.html +++ b/accounts/templates/accounts/index.html @@ -366,22 +366,14 @@ var options = { labelMonthPrev: 'Mese precedente', labelMonthSelect: 'Seleziona un mese', labelYearSelect: 'Seleziona un anno' - }} - -var instance = M.Tabs.init(elem, options); - -document.addEventListener('DOMContentLoaded', function() { - var elems = document.querySelectorAll('.datepicker'); - var instances = M.Datepicker.init(elems, options); -}); - -document.addEventListener('DOMContentLoaded', function() { - var elems = document.querySelectorAll('select'); - var instances = M.FormSelect.init(elems, options); -}); + } +} $(document).ready(function() { $('input#sickness, input#vaccine, input#allergy, input#drugs, input#misc').characterCounter(); + $('.datepicker').datepicker(options); + $('.tabs').tabs(); + $('select').formSelect(); }); /*! -- cgit v1.2.1