X-Git-Url: http://cgit.babelmonkeys.de/?p=adhocweb.git;a=blobdiff_plain;f=js%2Fmain.js;h=6bd32412743739166210a6cc07f5d3c9e3df1a29;hp=1bb3a459cee1c76a32db2d64f4ffd08b5c47ff7f;hb=e5d4fe480e02907b80e91d9ed42854700c5866c1;hpb=b01285cb145a159729dc46cb7df7f84e728c7f9b diff --git a/js/main.js b/js/main.js index 1bb3a45..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 + "

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