diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-28 16:26:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-28 16:26:19 +0100 |
commit | 680c43718f34d9f1b0f863cf18a17da39ba672c1 (patch) | |
tree | db045da1f9a79ff043dc610566bbf8a29c90bc6d | |
parent | 7d0514c110001b1a53c033d0e6c2fac7557d52cf (diff) | |
parent | 60e972627412bd5d38eee7418b1f1bd0ee04888a (diff) | |
download | rspamd-680c43718f34d9f1b0f863cf18a17da39ba672c1.tar.gz rspamd-680c43718f34d9f1b0f863cf18a17da39ba672c1.zip |
Merge pull request #1559 from moisseev/webui
[WebUI] Replace `.values` method with `.map`
-rw-r--r-- | interface/js/app/history.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js index 02c277d2f..045b0636b 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); }). |