X-Git-Url: http://cgit.babelmonkeys.de/?p=adhocweb.git;a=blobdiff_plain;f=js%2Fmain.js;h=9e09865c1e5200aa38e21690a77b948444cb0f9c;hp=1011dc87e58a9f4361130410e82282db34bb12c2;hb=78ac95ab5df5599c2563e492de65b7569df336b5;hpb=7b4f5c83f5892fe3ca742f0c61e311cc385bd641 diff --git a/js/main.js b/js/main.js index 1011dc8..9e09865 100644 --- a/js/main.js +++ b/js/main.js @@ -1,5 +1,5 @@ var BOSH_SERVICE = 'http://localhost:5280/http-bind/'; -var show_log = false; +var show_log = true; Strophe.addNamespace("ADHOC", "http://jabber.org/protocol/commands"); @@ -51,6 +51,7 @@ function addNote(elem, text, type) { if (!type) { type = "info"; } + text = text.replace(/\n/g, "
"); $(elem).append("

" + text + "

"); } @@ -87,7 +88,7 @@ function addForm(elem, x) { item = $("").attr("readonly",true); break; case "jid-multi": - item = $("