Callout messages do not have messages.

This commit is contained in:
Pierre 2018-05-01 08:48:30 +02:00
parent 944df583a6
commit 612949a86a

View File

@ -24,9 +24,11 @@ ComunicWeb.common.messages.createCalloutElem = function(calloutTitle, calloutMes
calloutElem.className = "callout callout-" + calloutType; calloutElem.className = "callout callout-" + calloutType;
//Add title //Add title
if(calloutTitle != ""){
var calloutTitleElem = document.createElement("h4"); var calloutTitleElem = document.createElement("h4");
calloutTitleElem.innerHTML = calloutTitle; calloutTitleElem.innerHTML = calloutTitle;
calloutElem.appendChild(calloutTitleElem) calloutElem.appendChild(calloutTitleElem)
}
//Add callout body //Add callout body
var calloutBody = document.createElement("div"); var calloutBody = document.createElement("div");