Fix: Don't hiccup on non-HTML-strings for message dialogs
This commit is contained in:
parent
a64a0545f3
commit
36d07532fb
1 changed files with 4 additions and 0 deletions
|
|
@ -447,6 +447,10 @@ function showMessageDialog(msg, options) {
|
|||
var close = options.close || gettext("Close");
|
||||
var onclose = options.onclose || undefined;
|
||||
|
||||
if (_.isString(message)) {
|
||||
message = $("<p>" + message + "</p>");
|
||||
}
|
||||
|
||||
var modalHeader = $('<a href="javascript:void(0)" class="close" data-dismiss="modal" aria-hidden="true">×</a><h3>' + title + '</h3>');
|
||||
var modalBody = $(message);
|
||||
var modalFooter = $('<a href="javascript:void(0)" class="btn" data-dismiss="modal" aria-hidden="true">' + close + '</a>');
|
||||
|
|
|
|||
Loading…
Reference in a new issue