init materialize elements the right way.

This commit is contained in:
Patrick Jentsch
2019-11-12 16:16:41 +01:00
parent 5660318450
commit 28171eb525
3 changed files with 24 additions and 17 deletions

View File

@@ -182,14 +182,7 @@
document.getElementById("nav-account"),
{"alignment": "right", "constrainWidth": false, "coverTrigger": false}
);
M.Dropdown.init(
document.getElementById("new-job"),
{"coverTrigger": false}
);
var loadingModal = document.getElementById("loading-modal");
console.log(loadingModal);
M.Modal.init(loadingModal, {"dismissible": false});
M.Modal.getInstance(loadingModal).open();
// Highlight current navigation entry
var entry;
for (entry of document.querySelectorAll("#slide-out a:not(.subheader)")) {
if (entry.href === window.location.href) {