summaryrefslogtreecommitdiff
path: root/public_html
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:45:22 (GMT)
commit07eb58d06a2204979cbe04ba44b42404f2af9572 (patch)
treeca5d60ad842bfb95534233a8d221b7fe3ae83fe5 /public_html
parent97b097dc5042263a5cdba516367bc491c7f1c80e (diff)
downloadkolab-wap-07eb58d06a2204979cbe04ba44b42404f2af9572.tar.gz
Fix handling mailquota units (Bug #1966) + some code improvements
Diffstat (limited to 'public_html')
-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 959f0f1..e435532 100644
--- a/public_html/js/kolab_admin.js
+++ b/public_html/js/kolab_admin.js
@@ -760,6 +760,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;
};