summaryrefslogtreecommitdiff
path: root/public_html
diff options
context:
space:
mode:
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 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;
};