summaryrefslogtreecommitdiffstats
path: root/public_html
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-03-16 09:38:21 +0100
committerAleksander Machniak <alec@alec.pl>2012-03-16 09:38:21 +0100
commitfcfcc465d4c7a80b4d5b9c765f778c434e492000 (patch)
tree8ade75f20587e22bf9fd45885f1aa7665842f4cd /public_html
parentd09b405ca61e5cb73253300884669156d0e7685b (diff)
downloadwebadmin-fcfcc465d4c7a80b4d5b9c765f778c434e492000.tar.gz
Fix handling of disabled (auto-generated) fields (#635)
Diffstat (limited to 'public_html')
-rw-r--r--public_html/js/kolab_admin.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/public_html/js/kolab_admin.js b/public_html/js/kolab_admin.js
index 26f1c10..69bab51 100644
--- a/public_html/js/kolab_admin.js
+++ b/public_html/js/kolab_admin.js
@@ -421,15 +421,15 @@ function kolab_admin()
var i, v, json = {},
form = $(id),
query = form.serializeArray(),
- disabled = this.env.auto_fields;
+ extra = this.env.extra_fields;
for (i in query)
json[query[i].name] = query[i].value;
- // read disabled fields too
- for (i in disabled)
- if (v = $('[name="'+i+'"]', form).val())
- json[i] = v;
+ // read extra (disabled) fields
+ for (i=0; i<extra.length; i++)
+ if (v = $('[name="'+extra[i]+'"]', form).val())
+ json[extra[i]] = v;
this.trigger_event('form-serialize', {id: id, json: json});