From 612949a86a144cacacca831182c20744269ee663 Mon Sep 17 00:00:00 2001 From: Pierre Date: Tue, 1 May 2018 08:48:30 +0200 Subject: [PATCH] Callout messages do not have messages. --- assets/js/common/messages.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/assets/js/common/messages.js b/assets/js/common/messages.js index 0557a48a..242fe311 100644 --- a/assets/js/common/messages.js +++ b/assets/js/common/messages.js @@ -24,9 +24,11 @@ ComunicWeb.common.messages.createCalloutElem = function(calloutTitle, calloutMes calloutElem.className = "callout callout-" + calloutType; //Add title - var calloutTitleElem = document.createElement("h4"); - calloutTitleElem.innerHTML = calloutTitle; - calloutElem.appendChild(calloutTitleElem) + if(calloutTitle != ""){ + var calloutTitleElem = document.createElement("h4"); + calloutTitleElem.innerHTML = calloutTitle; + calloutElem.appendChild(calloutTitleElem) + } //Add callout body var calloutBody = document.createElement("div");