summaryrefslogtreecommitdiff
path: root/public_html/js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-07-30 13:32:01 (GMT)
committerAleksander Machniak <alec@alec.pl>2013-07-30 13:32:01 (GMT)
commitb7c06cbc6efc609b10d8a7863359d669d9b54db6 (patch)
tree8b46cb52669b0e4067b81dc742a9c03dc3455e00 /public_html/js
parente9bbaf4d12dbbf165428cb37990563c9cb147c95 (diff)
downloadkolab-wap-b7c06cbc6efc609b10d8a7863359d669d9b54db6.tar.gz
Fix handling mailquota units (Bug #1966) + some code improvements
Diffstat (limited to 'public_html/js')
-rw-r--r--public_html/js/kolab_admin.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/public_html/js/kolab_admin.js b/public_html/js/kolab_admin.js
index b5bc376..c2ee52c 100644
--- a/public_html/js/kolab_admin.js
+++ b/public_html/js/kolab_admin.js
@@ -761,6 +761,14 @@ function kolab_admin()
data.json = kadm.form_url_element_submit(this.name, data.json, form);
});
+ // quota inputs
+ $('input[data-type="quota"]', form).each(function() {
+ var unit = $('select[name="' + this.name + '-unit"]').val();
+ if (unit)
+ data.json[this.name] = this.value + unit;
+ delete data.json[this.name + '-unit'];
+ });
+
return data;
};