aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app/history.js
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-07-11 11:13:40 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-07-11 11:45:37 +0300
commit99cf8eafc4f6cae6e6187dfa929da756536dbeb8 (patch)
tree17d63823374c46fabdb1b1106002cc30a57648cd /interface/js/app/history.js
parentf98d6e900feba2726ea548895b645d9455656d57 (diff)
downloadrspamd-99cf8eafc4f6cae6e6187dfa929da756536dbeb8.tar.gz
rspamd-99cf8eafc4f6cae6e6187dfa929da756536dbeb8.zip
[WebUI] Do not redeclare variables
Diffstat (limited to 'interface/js/app/history.js')
-rw-r--r--interface/js/app/history.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js
index 573a21407..b264df67a 100644
--- a/interface/js/app/history.js
+++ b/interface/js/app/history.js
@@ -158,15 +158,16 @@ define(["jquery", "footable", "humanize"],
preprocess_item(item);
Object.keys(item.symbols).map(function (key) {
+ var str;
var sym = item.symbols[key];
if (sym.description) {
- var str = "<strong><abbr data-sym-key=\"" + key + "\">" + sym.name + "</abbr></strong>(" + sym.score + ")";
+ str = "<strong><abbr data-sym-key=\"" + key + "\">" + sym.name + "</abbr></strong>(" + sym.score + ")";
// Store description for tooltip
symbolDescriptions[key] = sym.description;
} else {
- var str = "<strong>" + sym.name + "</strong>(" + sym.score + ")";
+ str = "<strong>" + sym.name + "</strong>(" + sym.score + ")";
}
if (sym.options) {