Merge branch 'dev'
This commit is contained in:
commit
8ac8838915
@ -3,7 +3,7 @@ $(document).ready(function() {
|
|||||||
// Get max. possible quota for a domain when domain field changes
|
// Get max. possible quota for a domain when domain field changes
|
||||||
$('#addSelectDomain').on('change', function() {
|
$('#addSelectDomain').on('change', function() {
|
||||||
$.get("/api/v1/get/domain/" + this.value, function(data){
|
$.get("/api/v1/get/domain/" + this.value, function(data){
|
||||||
var result = jQuery.parseJSON( data );
|
var result = $.parseJSON(JSON.stringify(data));
|
||||||
max_new_mailbox_quota = ( result.max_new_mailbox_quota / 1048576);
|
max_new_mailbox_quota = ( result.max_new_mailbox_quota / 1048576);
|
||||||
if (max_new_mailbox_quota != '0') {
|
if (max_new_mailbox_quota != '0') {
|
||||||
$("#quotaBadge").html('max. ' + max_new_mailbox_quota + ' MiB');
|
$("#quotaBadge").html('max. ' + max_new_mailbox_quota + ' MiB');
|
||||||
|
Loading…
Reference in New Issue
Block a user