#10: Slight tweak to Bootbox to correct the order of the close button and modal title in BS4

This commit is contained in:
Andy Heathershaw 2017-08-30 22:20:32 +01:00
parent 396bcb6c6d
commit 11852d6daa
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@
"</div>",
header:
"<div class='modal-header'>" +
"<h4 class='modal-title'></h4>" +
"<h5 class='modal-title'></h5>" +
"</div>",
footer:
"<div class='modal-footer'></div>",
@ -621,7 +621,7 @@
var closeButton = $(templates.closeButton);
if (options.title) {
dialog.find(".modal-header").prepend(closeButton);
dialog.find(".modal-header").append(closeButton);
} else {
closeButton.css("margin-top", "-10px").prependTo(body);
}