aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2017-03-27 19:51:09 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2017-03-27 19:51:09 +0300
commit60e972627412bd5d38eee7418b1f1bd0ee04888a (patch)
tree1dde371e1110aedce1e17ed2f121896a46ecec49 /interface/js
parentc1904b4f751ae59d9a48fab651f4a0e6a232375e (diff)
downloadrspamd-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.js5
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);
}).