bugfix for only call showMessage if it was defined

This commit is contained in:
Tankred Hase 2013-12-05 12:37:55 +01:00
parent fecad8b8c0
commit 8c16abbfee

View File

@ -267,7 +267,7 @@ var Util = function() {
} }
html = "<p style=\"font-size: 80%; background-color: #"+color+"; margin:0; width: 652px; word-break: break-word; padding: 5px; border-bottom: 1px solid black;\"><span style=\"color: #888;\"><b>"+heading+":</b></span>"+str+"</p>"; html = "<p style=\"font-size: 80%; background-color: #"+color+"; margin:0; width: 652px; word-break: break-word; padding: 5px; border-bottom: 1px solid black;\"><span style=\"color: #888;\"><b>"+heading+":</b></span>"+str+"</p>";
} }
if (showMessages) { if (typeof showMessages === "function") {
// only call function if defined // only call function if defined
showMessages(html); showMessages(html);
} }