summaryrefslogtreecommitdiff
path: root/public_html/js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-04-13 17:35:31 (GMT)
committerAleksander Machniak <alec@alec.pl>2013-04-13 17:35:31 (GMT)
commita205abb5dd871ba53603aee25beb4492bc9af4f5 (patch)
tree840bafb65a3be48aaee34ce82b7be8326cbee1de /public_html/js
parent932f7bcd25437c80ffead7e8940d66e4b830feaf (diff)
downloadkolab-wap-a205abb5dd871ba53603aee25beb4492bc9af4f5.tar.gz
Fix so objectClass attribute is not listed on attributes list
Diffstat (limited to 'public_html/js')
-rw-r--r--public_html/js/kolab_admin.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/public_html/js/kolab_admin.js b/public_html/js/kolab_admin.js
index c962be3..b448530 100644
--- a/public_html/js/kolab_admin.js
+++ b/public_html/js/kolab_admin.js
@@ -1744,9 +1744,6 @@ function kolab_admin()
return;
}
- // remove objectClass from required attributes list
- required = $.map(required, function(a) { return a == 'objectClass' ? null : a; });
-
request.id = data.id;
request.key = data.key;
request.name = data.name;
@@ -2042,15 +2039,18 @@ function kolab_admin()
return;
var i, lc, list = response.result.attribute.list || [],
+ required = response.result.attribute.required || [],
select = $('select[name="attr_name"]');
+ // remove objectClass from attributes list(s)
+ required = $.map(required, function(a) { return a == 'objectClass' ? null : a; });
+ list = $.map(list, function(a) { return a == 'objectClass' ? null : a; });
+
this.env.attributes = {};
- this.env.attributes_required = response.result.attribute.required || [];
+ this.env.attributes_required = required;
select.empty();
for (i in list) {
- if (i == 'objectClass')
- continue;
lc = list[i].toLowerCase();
this.env.attributes[lc] = list[i];
$('<option>').text(list[i]).val(lc).appendTo(select);