From d1378a55121ffa6a744df91930ea70bc8f6cf19b Mon Sep 17 00:00:00 2001 From: John Supplee Date: Tue, 5 Feb 2019 01:48:38 +0200 Subject: [PATCH] Add a thousands separator for message count --- management/templates/users.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/management/templates/users.html b/management/templates/users.html index 1d176de8..5ea45da9 100644 --- a/management/templates/users.html +++ b/management/templates/users.html @@ -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);