bugfix for only call showMessage if it was defined
This commit is contained in:
parent
fecad8b8c0
commit
8c16abbfee
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user