X-Git-Url: http://cgit.babelmonkeys.de/?p=adhocweb.git;a=blobdiff_plain;f=js%2Fmain.js;h=188dfc762eda4af93e1ac45659c9671bf8046d5f;hp=4cff25caf4b3a5e62fc7acbf1ae133f656cb383e;hb=e3f2eb03a5f4dc014e034cdfc65a572544421336;hpb=eab81f9e4afd38c8390745449865185e9637c830 diff --git a/js/main.js b/js/main.js index 4cff25c..188dfc7 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"); @@ -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")) { $("