From f4a0289e7119b3c82e678f759eace9f4746b2f0e Mon Sep 17 00:00:00 2001 From: andryyy Date: Sat, 29 Apr 2017 22:19:35 +0200 Subject: [PATCH] Important fix: Adding a domain was not possible --- data/web/js/add.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/web/js/add.js b/data/web/js/add.js index e7a3fd90..05171d10 100644 --- a/data/web/js/add.js +++ b/data/web/js/add.js @@ -3,7 +3,7 @@ $(document).ready(function() { // Get max. possible quota for a domain when domain field changes $('#addSelectDomain').on('change', function() { $.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); if (max_new_mailbox_quota != '0') { $("#quotaBadge").html('max. ' + max_new_mailbox_quota + ' MiB');