X-Git-Url: http://cgit.babelmonkeys.de/?p=adhocweb.git;a=blobdiff_plain;f=js%2Fmain.js;h=6bd32412743739166210a6cc07f5d3c9e3df1a29;hp=4cff25caf4b3a5e62fc7acbf1ae133f656cb383e;hb=e5d4fe480e02907b80e91d9ed42854700c5866c1;hpb=eab81f9e4afd38c8390745449865185e9637c830 diff --git a/js/main.js b/js/main.js index 4cff25c..6bd3241 100644 --- a/js/main.js +++ b/js/main.js @@ -41,6 +41,7 @@ function onConnect(status) { } else if (status == Strophe.Status.CONNECTED) { log('Strophe is connected.'); queryJID = connection.domain; + $('#queryJID').val(queryJID); $('#query').show(); checkFeatures(); } @@ -50,6 +51,7 @@ function addNote(elem, text, type) { if (!type) { type = "info"; } + text = text.replace(/\n/g, "
"); $(elem).append("

" + text + "

"); } @@ -67,6 +69,7 @@ function addForm(elem, x) { var type = $(this).attr("type"); if($(this).attr("label")) { $("