From fd022ee01cd02c6ebb07b5a1cf97dd6c4e758da3 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 29 Jan 2015 09:51:32 +0100 Subject: [PATCH] Moved to short form for file size. --- .../app/controllers/_application_controller.js.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller.js.coffee b/app/assets/javascripts/app/controllers/_application_controller.js.coffee index 1820ef8a7..0ac61050b 100644 --- a/app/assets/javascripts/app/controllers/_application_controller.js.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller.js.coffee @@ -161,9 +161,9 @@ class App.Controller extends Spine.Controller # human readable file size humanFileSize: (size) => if size > ( 1024 * 1024 ) - size = Math.round( size / ( 1024 * 1024 ) ) + ' MBytes' + size = Math.round( size / ( 1024 * 1024 ) ) + ' MB' else if size > 1024 - size = Math.round( size / 1024 ) + ' KBytes' + size = Math.round( size / 1024 ) + ' KB' else size = size + ' Bytes' size