X-Git-Url: http://cgit.babelmonkeys.de/?p=adhocweb.git;a=blobdiff_plain;f=js%2Fmain.js;h=1bb3a459cee1c76a32db2d64f4ffd08b5c47ff7f;hp=4cff25caf4b3a5e62fc7acbf1ae133f656cb383e;hb=b01285cb145a159729dc46cb7df7f84e728c7f9b;hpb=eab81f9e4afd38c8390745449865185e9637c830
diff --git a/js/main.js b/js/main.js
index 4cff25c..1bb3a45 100644
--- a/js/main.js
+++ b/js/main.js
@@ -67,6 +67,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 +77,7 @@ function addForm(elem, x) {
item = $("");
break;
case "text-multi":
- item = $("");
+ item = $("");
break;
case "text-single":
item = $("");
@@ -85,7 +86,7 @@ function addForm(elem, x) {
item = $("").attr("readonly",true);
break;
case "jid-multi":
- item = $("");
+ item = $("");
break;
case "jid-single":
item = $("");
@@ -131,7 +132,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 +256,8 @@ function showConnect() {
$('#query').hide();
pass.show();
jid.show();
- $('label').show();
+ $('#cred label').show();
+ $('#cred br').show();
$('#output').empty();
}
@@ -267,6 +270,7 @@ function showDisconnect() {
pass.hide();
jid.hide();
$('#cred label').hide();
+ $('#cred br').hide();
}
$(document).ready(function () {