Fix checkbox toggling, add nav tabs, fix broken domain quota when adding a new domain

This commit is contained in:
andryyy committed 2017-04-27 08:44:21 +02:00
1 parent 5586bd2bb5
commit e26304f6d0
5 files changed
+120 -97

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ $(document).ready(function() {
// add.php
// Get max. possible quota for a domain when domain field changes
$('#addSelectDomain').on('change', function() {
$.get("/api/v1/domain/" + this.value, function(data){
$.get("/api/v1/get/domain/" + this.value, function(data){
var result = jQuery.parseJSON( data );
max_new_mailbox_quota = ( result.max_new_mailbox_quota / 1048576);
if (max_new_mailbox_quota != '0') {