mailcow dockerized
This commit is contained in:
16
data/web/js/add.js
Normal file
16
data/web/js/add.js
Normal file
@@ -0,0 +1,16 @@
|
||||
$(document).ready(function() {
|
||||
// add.php
|
||||
// Get max. possible quota for a domain when domain field changes
|
||||
$('#addSelectDomain').on('change', function() {
|
||||
$.get("add.php", { js:"remaining_specs", domain:this.value, object:"new" }, function(data){
|
||||
if (data != '0') {
|
||||
$("#quotaBadge").html('max. ' + data + ' MiB');
|
||||
$('#addInputQuota').attr({"disabled": false, "value": "", "type": "number", "max": data});
|
||||
}
|
||||
else {
|
||||
$("#quotaBadge").html('max. ' + data + ' MiB');
|
||||
$('#addInputQuota').attr({"disabled": true, "value": "", "type": "text", "value": "n/a"});
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user