[Web] fix mailboxtable sort by quota
This commit is contained in:
parent
7966f010a2
commit
e501642b8e
@ -838,7 +838,13 @@ jQuery(function($){
|
|||||||
url: "/api/v1/get/mailbox/reduced",
|
url: "/api/v1/get/mailbox/reduced",
|
||||||
dataSrc: function(json){
|
dataSrc: function(json){
|
||||||
$.each(json, function (i, item) {
|
$.each(json, function (i, item) {
|
||||||
item.quota = item.quota_used + "/" + item.quota;
|
item.quota = {
|
||||||
|
sortBy: item.quota_used,
|
||||||
|
value: item.quota
|
||||||
|
}
|
||||||
|
item.quota.value = (item.quota.value == 0 ? "∞" : humanFileSize(item.quota.value));
|
||||||
|
item.quota.value = humanFileSize(item.quota_used) + "/" + item.quota.value;
|
||||||
|
|
||||||
item.max_quota_for_mbox = humanFileSize(item.max_quota_for_mbox);
|
item.max_quota_for_mbox = humanFileSize(item.max_quota_for_mbox);
|
||||||
item.last_mail_login = item.last_imap_login + '/' + item.last_pop3_login + '/' + item.last_smtp_login;
|
item.last_mail_login = item.last_imap_login + '/' + item.last_pop3_login + '/' + item.last_smtp_login;
|
||||||
/*
|
/*
|
||||||
@ -943,14 +949,10 @@ jQuery(function($){
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: lang.domain_quota,
|
title: lang.domain_quota,
|
||||||
data: 'quota',
|
data: 'quota.value',
|
||||||
responsivePriority: 8,
|
responsivePriority: 8,
|
||||||
defaultContent: '',
|
defaultContent: '',
|
||||||
render: function (data, type) {
|
orderData: 23
|
||||||
data = data.split("/");
|
|
||||||
var of_q = (data[1] == 0 ? "∞" : humanFileSize(data[1]));
|
|
||||||
return humanFileSize(data[0]) + " / " + of_q;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: lang.last_mail_login,
|
title: lang.last_mail_login,
|
||||||
@ -1076,6 +1078,13 @@ jQuery(function($){
|
|||||||
responsivePriority: 6,
|
responsivePriority: 6,
|
||||||
defaultContent: ''
|
defaultContent: ''
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "",
|
||||||
|
data: 'quota.sortBy',
|
||||||
|
responsivePriority: 8,
|
||||||
|
defaultContent: '',
|
||||||
|
className: "d-none"
|
||||||
|
},
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user