diff --git a/data/web/js/site/mailbox.js b/data/web/js/site/mailbox.js index 32de2a8d1..012cc835a 100644 --- a/data/web/js/site/mailbox.js +++ b/data/web/js/site/mailbox.js @@ -715,10 +715,6 @@ jQuery(function($){ $.each(json, function (i, item) { item.chkbox = ''; - item.attributes.def_quota_for_mbox = humanFileSize(item.attributes.def_quota_for_mbox); - item.attributes.max_quota_for_mbox = humanFileSize(item.attributes.max_quota_for_mbox); - item.attributes.max_quota_for_domain = humanFileSize(item.attributes.max_quota_for_domain); - item.template = escapeHtml(item.template); if (item.attributes.rl_frame === "s"){ item.attributes.rl_frame = lang_rl.second; @@ -801,16 +797,25 @@ jQuery(function($){ title: lang.mailbox_defquota, data: 'attributes.def_quota_for_mbox', defaultContent: '', + render: function (data, type) { + return type === 'sort' || type === 'type' ? data : humanFileSize(data); + } }, { title: lang.max_quota, data: 'attributes.max_quota_for_mbox', defaultContent: '', + render: function (data, type) { + return type === 'sort' || type === 'type' ? data : humanFileSize(data); + } }, { title: lang.domain_quota_total, data: 'attributes.max_quota_for_domain', defaultContent: '', + render: function (data, type) { + return type === 'sort' || type === 'type' ? data : humanFileSize(data); + } }, { title: lang.gal, @@ -1244,8 +1249,6 @@ jQuery(function($){ item.attributes.rl_value = (!item.attributes.rl_value) ? "∞" : escapeHtml(item.attributes.rl_value); item.attributes.ratelimit = item.attributes.rl_value + " " + item.attributes.rl_frame; - item.attributes.quota = humanFileSize(item.attributes.quota); - item.attributes.tls_enforce_in = '' + (item.attributes.tls_enforce_in == 1 ? '1' : '0') + ''; item.attributes.tls_enforce_out = '' + (item.attributes.tls_enforce_out == 1 ? '1' : '0') + ''; item.attributes.pop3_access = '' + (item.attributes.pop3_access == 1 ? '1' : '0') + ''; @@ -1332,6 +1335,9 @@ jQuery(function($){ title: lang.domain_quota, data: 'attributes.quota', defaultContent: '', + render: function (data, type) { + return type === 'sort' || type === 'type' ? data : humanFileSize(data); + } }, { title: lang.tls_enforce_in,