diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-10 14:42:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-10 14:42:47 +0100 |
commit | 555d0761f792d0bef846e0fa053ad112b6d5853b (patch) | |
tree | 00f3161d332d3d4cec4cb47b25979b111e2ba459 | |
parent | d4db3fc8c493b6a0bd03ba5b06c9608ad0b0f1f7 (diff) | |
parent | d8a35de805200ff0110eae556b1083baae415c8d (diff) | |
download | rspamd-555d0761f792d0bef846e0fa053ad112b6d5853b.tar.gz rspamd-555d0761f792d0bef846e0fa053ad112b6d5853b.zip |
Merge pull request #1858 from gaetronik/fix-undefined-symbol-name-preprocess
Fix undefined symbol name in webui.
-rw-r--r-- | interface/js/app/history.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js index b13b3007b..422b8aa3b 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -63,7 +63,9 @@ function($, _, Humanize) { case "symbols": Object.keys(item.symbols).map(function(key) { var sym = item.symbols[key]; - + if (!sym.name) { + sym.name = key; + } sym.name = EscapeHTML(key); sym.description = EscapeHTML(sym.description); @@ -117,9 +119,7 @@ function($, _, Humanize) { preprocess_item(item); Object.keys(item.symbols).map(function(key) { var sym = item.symbols[key]; - if (!sym.name) { - sym.name = key; - } + var str = '<strong>' + sym.name + '</strong>' + "(" + sym.score + ")"; if (sym.options) { |