diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-08-04 12:39:31 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-08-04 12:39:31 +0300 |
commit | 43b165ba84f771379f335050897dff74931a331f (patch) | |
tree | 23900a163639d183f2fbc676ec57a0c630b2f552 /interface | |
parent | a42862af34d601105b906ef498c1077bf67af24c (diff) | |
download | rspamd-43b165ba84f771379f335050897dff74931a331f.tar.gz rspamd-43b165ba84f771379f335050897dff74931a331f.zip |
[Minor] Hide colon if status text is empty
Diffstat (limited to 'interface')
-rw-r--r-- | interface/js/app/rspamd.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index 7ca11ae74..c703d9367 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -208,7 +208,8 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config, neighbours_status[ind].checked = true; function errorMessage() { alertMessage("alert-error", neighbours_status[ind].name + " > " + - ((o.errorMessage) ? o.errorMessage : "Request failed") + ": " + errorThrown); + (o.errorMessage ? o.errorMessage : "Request failed") + + (errorThrown ? (": " + errorThrown) : "")); } if (o.error) { o.error(neighbours_status[ind], |