From: Florian Zeitz Date: Wed, 6 Oct 2010 17:21:13 +0000 (+0200) Subject: Convert newlines to
, for better readability X-Git-Url: https://cgit.babelmonkeys.de/?a=commitdiff_plain;h=35279be3c7092dd6dc33e03ca5f09c01670a581e;hp=7fd80fc5a2dfecdac19d2d220b328552c9b4cf2e;p=adhocweb.git Convert newlines to
, for better readability --- diff --git a/js/main.js b/js/main.js index 1011dc8..4db92c8 100644 --- a/js/main.js +++ b/js/main.js @@ -51,6 +51,7 @@ function addNote(elem, text, type) { if (!type) { type = "info"; } + text = text.replace(/\n/g, "
"); $(elem).append("

" + text + "

"); }