From deb2a10153127d91f2b846362d865b5a09b5af46 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 20 Mar 2017 11:39:31 +0000 Subject: [PATCH] [WebUI] Humanize sizes --- interface/js/app/history.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/interface/js/app/history.js b/interface/js/app/history.js index 11edc21b3d..9581662573 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -22,8 +22,8 @@ THE SOFTWARE. */ -define(['jquery', 'footable'], -function($) { +define(['jquery', 'footable', 'humanize'], +function($, _, Humanize) { var interface = {}; function unix_time_format(tm) { @@ -51,6 +51,8 @@ function($) { if (item.user == null) { item.user = "none"; } + + item.size = Humanize.compactInteger(item.size); } function process_history_v2(data) { -- 2.47.3