]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[WebUI] Humanize sizes
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 20 Mar 2017 11:39:31 +0000 (11:39 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 20 Mar 2017 11:39:31 +0000 (11:39 +0000)
interface/js/app/history.js

index 11edc21b3d7c78ad1abd99556c6d7656651d1374..9581662573ccd6b0b23e2e542faa75f5f9c44edd 100644 (file)
@@ -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) {