aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-07-08 11:58:27 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-07-08 11:58:27 +0300
commit97f21fc116b5c2bb416d8bd212a2ee06ddceee68 (patch)
treee81fc467ff4dc4f4c59e6427b71fbcac537c152e /interface/js
parente514ce57b5dfba541564828ef6373c0912a9f7cd (diff)
downloadrspamd-97f21fc116b5c2bb416d8bd212a2ee06ddceee68.tar.gz
rspamd-97f21fc116b5c2bb416d8bd212a2ee06ddceee68.zip
[WebUI] Fix variable assignment
I think `var full = shrt = "";` is `var full = (shrt = "");` effectively, so `full = true`.
Diffstat (limited to 'interface/js')
-rw-r--r--interface/js/app/history.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js
index 7677550bd..4a8cddb0c 100644
--- a/interface/js/app/history.js
+++ b/interface/js/app/history.js
@@ -137,7 +137,8 @@ define(["jquery", "footable", "humanize"],
return (l > rcpt_lim) ? " … (" + l + ")" : "";
}
function format_rcpt(smtp, mime) {
- var full = shrt = "";
+ var full = "";
+ var shrt = "";
if (smtp) {
full = "[" + item.rcpt_smtp.join(", ") + "] ";
shrt = "[" + item.rcpt_smtp.slice(0, rcpt_lim).join(",&#8203;") + more("rcpt_smtp") + "]";