aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app/history.js
diff options
context:
space:
mode:
Diffstat (limited to 'interface/js/app/history.js')
-rw-r--r--interface/js/app/history.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js
index 1aab72456..68e66924e 100644
--- a/interface/js/app/history.js
+++ b/interface/js/app/history.js
@@ -61,13 +61,14 @@ define(["jquery", "footable", "humanize"],
function preprocess_item(item) {
for (var prop in item) {
+ if (!{}.hasOwnProperty.call(item, prop)) continue;
switch (prop) {
case "rcpt_mime":
case "rcpt_smtp":
escape_HTML_array(item[prop]);
break;
case "symbols":
- Object.keys(item.symbols).map(function (key) {
+ Object.keys(item.symbols).forEach(function (key) {
var sym = item.symbols[key];
if (!sym.name) {
sym.name = key;
@@ -155,7 +156,7 @@ define(["jquery", "footable", "humanize"],
}
preprocess_item(item);
- Object.keys(item.symbols).map(function (key) {
+ Object.keys(item.symbols).forEach(function (key) {
var str = null;
var sym = item.symbols[key];
@@ -614,6 +615,7 @@ define(["jquery", "footable", "humanize"],
waitForRowsDisplayed(callback, i);
}, 500);
}
+ return null;
}
rspamd.query("history", {
@@ -627,6 +629,7 @@ define(["jquery", "footable", "humanize"],
"Neighbours history backend versions do not match. Cannot display history.");
return true;
}
+ return false;
}
var neighbours_data = req_data