Replace \n by <br> to display newlines correctly

This commit is contained in:
Alexandre Aubin 2019-03-27 18:24:22 +01:00
parent bbb8db97b1
commit d264afed5e

View file

@ -33,6 +33,8 @@
level = 'log';
}
message = message.split("\n").join("<br />");
// Add message
$('#flashMessage .messages')
.prepend('<div class="alert alert-'+ level +'">'+