summaryrefslogtreecommitdiff
path: root/public_html
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-10-12 11:35:49 (GMT)
committerAleksander Machniak <alec@alec.pl>2012-10-12 11:35:49 (GMT)
commit503768db5edc109fde0711ff5b94dd96cbaea188 (patch)
tree8c1eb194ec69a5bf8d023691572803497e4234ca /public_html
parent18ac46d9632e96a9ddf499e48d11e507de94b678 (diff)
downloadkolab-wap-503768db5edc109fde0711ff5b94dd96cbaea188.tar.gz
Fix attribute form initialization on attribute edit
Diffstat (limited to 'public_html')
-rw-r--r--public_html/js/kolab_admin.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/public_html/js/kolab_admin.js b/public_html/js/kolab_admin.js
index 09da5f8..b7fff8a 100644
--- a/public_html/js/kolab_admin.js
+++ b/public_html/js/kolab_admin.js
@@ -1785,7 +1785,7 @@ function kolab_admin()
{
var name_select = $('select[name="attr_name"]'),
data = attr ? this.env.attr_table[attr] : {},
- type = data.type ? data.type : 'text';
+ type = data.type || 'text';
$('select[name="attr_type"]').val(type);
$('select[name="attr_value"]').val(attr ? data.valtype : 'normal');
@@ -1799,7 +1799,6 @@ function kolab_admin()
name_select.hide().val(attr);
$('<span></span>').text(this.env.attributes[attr] ? this.env.attributes[attr] : attr)
.appendTo(name_select.parent());
- return;
}
else {
this.type_attr_select_init();