From: Alexander Moisseev Date: Mon, 27 Mar 2017 16:51:09 +0000 (+0300) Subject: [WebUI] Replace `.values` method with `.map` X-Git-Tag: 1.5.4~2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1559%2Fhead;p=thirdparty%2Frspamd.git [WebUI] Replace `.values` method with `.map` as `.values` is unsupported in many browsers --- diff --git a/interface/js/app/history.js b/interface/js/app/history.js index 02c277d2fb..045b0636b6 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -78,7 +78,10 @@ function($, _, Humanize) { } item.symbols[key].str = str; }); - item.symbols = Object.values(item.symbols). + item.symbols = Object.keys(item.symbols). + map(function(key) { + return item.symbols[key]; + }). sort(function(e1, e2) { return Math.abs(e1.score) < Math.abs(e2.score); }).