Skip to content
Snippets Groups Projects
Commit 6d655210 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Make toasts eckig again!

parent 5aa4fcd6
No related branches found
No related tags found
No related merge requests found
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
} }
} }
{% for message in get_flashed_messages() %} {% for message in get_flashed_messages() %}
M.toast({"classes": "rounded", "html": '<span>{{ message }}</span><button class="btn-flat toast-action red-text" data-action="close"><i class="material-icons">close</i></button>'}); M.toast({"html": '<span>{{ message }}</span><button class="btn-flat toast-action red-text" data-action="close"><i class="material-icons">close</i></button>'});
{% endfor %} {% endfor %}
for (toastActionElement of document.querySelectorAll(".toast-action[data-action='close']")) { for (toastActionElement of document.querySelectorAll(".toast-action[data-action='close']")) {
toastActionElement.addEventListener("click", function(event) { toastActionElement.addEventListener("click", function(event) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment