summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2012-04-11 12:36:42 +0200
committerAleksander Machniak <machniak@kolabsys.com>2012-04-11 12:36:42 +0200
commit4f37477cc1faaa76779d9c2a7d1f3eb8ae4b1ef7 (patch)
treee71837f217a92787e4328bb7de4a03af45b20e3e
parentbb72cd7199b6cec13b8fe9a1959323c70bdd1bf2 (diff)
downloadwebadmin-4f37477cc1faaa76779d9c2a7d1f3eb8ae4b1ef7.tar.gz
Include unique entry identifier in form_value.generate calls (#700)
-rw-r--r--public_html/js/kolab_admin.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/public_html/js/kolab_admin.js b/public_html/js/kolab_admin.js
index b4ed605..eaa0817 100644
--- a/public_html/js/kolab_admin.js
+++ b/public_html/js/kolab_admin.js
@@ -947,10 +947,14 @@ function kolab_admin()
{
var i, j, e, elem, name, elem_name,
form = $('#'+this.env.form_id),
+ id = $('[name="id"]', form).val(),
type_id = $('[name="type_id"]', form).val(),
object_type = $('[name="object_type"]', form).val(),
data = {type_id: type_id, object_type: object_type, attributes: []};
+ if (id)
+ data.id = id;
+
this.set_busy(true, 'loading');
for (i=0; i<events.length; i++) {