X-Git-Url: http://cgit.babelmonkeys.de/?p=adhocweb.git;a=blobdiff_plain;f=js%2Fmain.js;h=52e6296a5c54908a740595d00a36e3712faa3c6f;hp=1bb3a459cee1c76a32db2d64f4ffd08b5c47ff7f;hb=0a815dbe7d2fac797c905149988ac5e540b663bc;hpb=b01285cb145a159729dc46cb7df7f84e728c7f9b diff --git a/js/main.js b/js/main.js index 1bb3a45..52e6296 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(); } @@ -127,6 +128,8 @@ function addForm(elem, x) { item.val($(this).find("value").text()); } } + if ($(x).attr("type") == "result") + item.attr("readonly", true); if ($(this).attr("var")) { item.attr("name", $(this).attr("var")); item.attr("id", $(this).attr("var"));