]> cgit.babelmonkeys.de Git - adhocweb.git/blobdiff - js/main.js
Fix typo: Missing "="
[adhocweb.git] / js / main.js
index 1011dc87e58a9f4361130410e82282db34bb12c2..6bd32412743739166210a6cc07f5d3c9e3df1a29 100644 (file)
@@ -51,6 +51,7 @@ function addNote(elem, text, type) {
     if (!type) {
        type = "info";
     }
+    text = text.replace(/\n/g, "<br/>");
     $(elem).append("<p class='" + type + "Note'>" + text + "</p>");
 }
 
@@ -87,7 +88,7 @@ function addForm(elem, x) {
             item = $("<input type='text'/>").attr("readonly",true);
             break;
         case "jid-multi":
-            item = $("<textarea rows='10' cols'70'/>");
+            item = $("<textarea rows='10' cols='70'/>");
             break;
         case "jid-single":
             item = $("<input type='text'/>");