summaryrefslogtreecommitdiffstats
path: root/public_html
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2012-03-30 13:26:32 +0200
committerAleksander Machniak <machniak@kolabsys.com>2012-03-30 13:26:32 +0200
commit7906fe64d5b76d6abec033ade2d3e9fa56d9abd8 (patch)
tree9b0dbf6d00f497eb3726b79705394cdef12300c7 /public_html
parentfe39a1887ffe4425b88613eeb384971f838103f3 (diff)
downloadwebadmin-7906fe64d5b76d6abec033ade2d3e9fa56d9abd8.tar.gz
Unified some methods: Use object_type_*() instead of separate user_type_*/group_type_*/<any>_type_*.
Unified some API calls arguments: Use object_name and type_id instead of user_type_id/group_type_id/<any>_type_id.
Diffstat (limited to 'public_html')
-rw-r--r--public_html/js/kolab_admin.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/public_html/js/kolab_admin.js b/public_html/js/kolab_admin.js
index dabf56c..d035b49 100644
--- a/public_html/js/kolab_admin.js
+++ b/public_html/js/kolab_admin.js
@@ -924,8 +924,9 @@ function kolab_admin()
{
var i, j, e, elem, name, elem_name,
form = $('#'+this.env.form_id),
- type_id = $('[name="user_type_id"]', form).val(),
- data = {user_type_id: type_id, attributes: []};
+ type_id = $('[name="type_id"]', form).val(),
+ object_type = $('[name="object_type"]', form).val(),
+ data = {type_id: type_id, object_type: object_type, attributes: []};
this.set_busy(true, 'loading');