Add a thousands separator for message count

This commit is contained in:
John Supplee 2019-02-05 01:48:38 +02:00
parent a60e1c274a
commit d1378a5512
1 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ function show_users() {
n.attr('data-email', user.email);
n.attr('data-quota', user.quota);
n.find('.address').text(user.email);
n.find('.box-count').text(user.box_count);
n.find('.box-count').text((user.box_count).toLocaleString('en'));
if (user.box_count == '?') {
n.find('.box-count').attr('title', 'Message count is unkown')
}
@ -190,7 +190,7 @@ function show_users() {
if (user.box_size == '?') {
n.find('.box-size').attr('title', 'Mailbox size is unkown')
}
n.find('.percent').text(user.percent)
n.find('.percent').text(user.percent);
n.find('.quota').text((user.quota == '0') ? 'unlimited' : user.quota);
n2.find('.restore_info tt').text(user.mailbox);