mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Replace \n by <br> to display newlines correctly
This commit is contained in:
parent
bbb8db97b1
commit
d264afed5e
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,8 @@
|
||||||
level = 'log';
|
level = 'log';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message = message.split("\n").join("<br />");
|
||||||
|
|
||||||
// Add message
|
// Add message
|
||||||
$('#flashMessage .messages')
|
$('#flashMessage .messages')
|
||||||
.prepend('<div class="alert alert-'+ level +'">'+
|
.prepend('<div class="alert alert-'+ level +'">'+
|
||||||
|
|
Loading…
Reference in a new issue