From: Alexander Moisseev Date: Sat, 4 Aug 2018 09:39:31 +0000 (+0300) Subject: [Minor] Hide colon if status text is empty X-Git-Tag: 1.8.0~312^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=43b165ba84f771379f335050897dff74931a331f;p=thirdparty%2Frspamd.git [Minor] Hide colon if status text is empty --- diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index 7ca11ae74a..c703d93672 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],