From dac14b13df67ebab49025b9e64b7397c76febe37 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 16 Mar 2020 12:41:14 +0100 Subject: [PATCH] Alerts are dismissible --- static/js/base.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/base.js b/static/js/base.js index c2fb7261..2362375b 100644 --- a/static/js/base.js +++ b/static/js/base.js @@ -23,7 +23,9 @@ function pretty_money(value) { function addMsg(msg, alert_type) { let msgDiv = $("#messages"); let html = msgDiv.html(); - html += "
" + msg + "
\n"; + html += "
" + + "" + + msg + "
\n"; msgDiv.html(html); }