X-Git-Url: http://cgit.babelmonkeys.de/?p=adhocweb.git;a=blobdiff_plain;f=js%2Fmain.js;h=a0800ad54ddecfbcd4d7f0ccff4c3c48a65fe641;hp=9f802b5f8e8bea4f4af7bb1334e5beee1ed04384;hb=eea26db826d1821aa4268fa8ccba484bff97a5bb;hpb=38cd189c63c36d684943f0c21e32d4933e26863c diff --git a/js/main.js b/js/main.js index 9f802b5..a0800ad 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(); } @@ -55,7 +56,7 @@ function addNote(elem, text, type) { function addForm(elem, x) { var form = $("
"); - form.submit(function(){return false;}); + form.submit(function(event){event.preventDefault();}); var fieldset = $("
"); form.append(fieldset); if ($(x).find("title").length > 0) @@ -67,6 +68,7 @@ function addForm(elem, x) { var type = $(this).attr("type"); if($(this).attr("label")) { $("