From c70e53a658d33a61ff31dccc4d17c56445e1cdc3 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Wed, 3 Jan 2018 14:40:08 +0100 Subject: [PATCH] MaterializeCSS 1.0-alpha-3 --- static/js/init.js | 4 ++-- templates/base.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/init.js b/static/js/init.js index 26c36af..b7fd843 100644 --- a/static/js/init.js +++ b/static/js/init.js @@ -1,9 +1,9 @@ var options = {} var elem = document.querySelector('.sidenav'); -var instance = new M.Sidenav(elem, options); +var instance = M.Sidenav.init(elem, options); var elem = document.querySelector('.collapsible'); - var instance = new M.Collapsible(elem, { + var instance = M.Collapsible.init(elem, { // inDuration: 1000, // outDuration: 1000 }); diff --git a/templates/base.html b/templates/base.html index 9bdd745..4dd1414 100644 --- a/templates/base.html +++ b/templates/base.html @@ -17,7 +17,7 @@ - +