From f2f62c64eba5dffaa8d4f9e8e9c39275387fc77e Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Fri, 2 Aug 2019 15:15:02 +0200 Subject: [PATCH] No double initialization for javascript powered elements. --- app/templates/base.html.j2 | 8 ++++---- app/templates/main/dashboard.html.j2 | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/templates/base.html.j2 b/app/templates/base.html.j2 index d58bd373..ecd4ec40 100644 --- a/app/templates/base.html.j2 +++ b/app/templates/base.html.j2 @@ -32,8 +32,8 @@ menu @@ -159,8 +159,8 @@ {"alignment": "right", "constrainWidth": false, "coverTrigger": false} ); M.Dropdown.init( - document.getElementById("nav-settings"), - {"alignment": "right", "constrainWidth": false, "coverTrigger": false} + document.getElementById("new-job"), + {"coverTrigger": false} ); {% for message in get_flashed_messages() %} M.toast({html: '{{ message }}'}) diff --git a/app/templates/main/dashboard.html.j2 b/app/templates/main/dashboard.html.j2 index 9e1035f4..563e60ab 100644 --- a/app/templates/main/dashboard.html.j2 +++ b/app/templates/main/dashboard.html.j2 @@ -63,7 +63,7 @@
-

addNew job

+

addNew job