Skip to content
Snippets Groups Projects
Commit 89a321b4 authored by Teemu Autto's avatar Teemu Autto
Browse files

Allow html in the notifications.

parent 4e078bfc
No related branches found
No related tags found
No related merge requests found
Pipeline #15886 failed
......@@ -6,7 +6,7 @@ function showMessage(message, category="message", created_at=Date.now()) {
// Insert new toast
const html = document.querySelector("#message-toast").content.cloneNode(true);
html.classList += " " + category;
html.querySelector(".message").append(message);
html.querySelector(".message").innerHTML = message;
html.querySelector("time.created-at").setAttribute("datetime", created_at);
ago = moment(created_at).fromNow();
html.querySelector("time.created-at").append(ago);
......
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