X-Git-Url: http://cgit.babelmonkeys.de/?p=adhocweb.git;a=blobdiff_plain;f=js%2Fmain.js;h=a0800ad54ddecfbcd4d7f0ccff4c3c48a65fe641;hp=4cff25caf4b3a5e62fc7acbf1ae133f656cb383e;hb=eea26db826d1821aa4268fa8ccba484bff97a5bb;hpb=eab81f9e4afd38c8390745449865185e9637c830
diff --git a/js/main.js b/js/main.js
index 4cff25c..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();
}
@@ -67,6 +68,7 @@ function addForm(elem, x) {
var type = $(this).attr("type");
if($(this).attr("label")) {
$("").text($(this).attr("label")).attr("for", $(this).attr("var")).appendTo(fieldset);
+ $("
").appendTo(fieldset);
}
switch(type) {
case "hidden":
@@ -76,7 +78,7 @@ function addForm(elem, x) {
item = $("");
break;
case "text-multi":
- item = $("");
+ item = $("");
break;
case "text-single":
item = $("");
@@ -85,7 +87,7 @@ function addForm(elem, x) {
item = $("").attr("readonly",true);
break;
case "jid-multi":
- item = $("");
+ item = $("");
break;
case "jid-single":
item = $("");
@@ -131,7 +133,8 @@ function addForm(elem, x) {
item.attr("id", $(this).attr("var"));
}
fieldset.append(item);
- fieldset.append("
");
+ if (type != "hidden")
+ fieldset.append("
");
});
$(elem).append(form);
}
@@ -254,7 +257,8 @@ function showConnect() {
$('#query').hide();
pass.show();
jid.show();
- $('label').show();
+ $('#cred label').show();
+ $('#cred br').show();
$('#output').empty();
}
@@ -267,6 +271,7 @@ function showDisconnect() {
pass.hide();
jid.hide();
$('#cred label').hide();
+ $('#cred br').hide();
}
$(document).ready(function () {