diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2017-03-27 19:51:09 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2017-03-27 19:51:09 +0300 |
commit | 60e972627412bd5d38eee7418b1f1bd0ee04888a (patch) | |
tree | 1dde371e1110aedce1e17ed2f121896a46ecec49 /interface/js | |
parent | c1904b4f751ae59d9a48fab651f4a0e6a232375e (diff) | |
download | rspamd-60e972627412bd5d38eee7418b1f1bd0ee04888a.tar.gz rspamd-60e972627412bd5d38eee7418b1f1bd0ee04888a.zip |
[WebUI] Replace `.values` method with `.map`
as `.values` is unsupported in many browsers
Diffstat (limited to 'interface/js')
-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); }). |