#10: Slight tweak to Bootbox to correct the order of the close button and modal title in BS4
This commit is contained in:
parent
396bcb6c6d
commit
11852d6daa
@ -38,7 +38,7 @@
|
|||||||
"</div>",
|
"</div>",
|
||||||
header:
|
header:
|
||||||
"<div class='modal-header'>" +
|
"<div class='modal-header'>" +
|
||||||
"<h4 class='modal-title'></h4>" +
|
"<h5 class='modal-title'></h5>" +
|
||||||
"</div>",
|
"</div>",
|
||||||
footer:
|
footer:
|
||||||
"<div class='modal-footer'></div>",
|
"<div class='modal-footer'></div>",
|
||||||
@ -621,7 +621,7 @@
|
|||||||
var closeButton = $(templates.closeButton);
|
var closeButton = $(templates.closeButton);
|
||||||
|
|
||||||
if (options.title) {
|
if (options.title) {
|
||||||
dialog.find(".modal-header").prepend(closeButton);
|
dialog.find(".modal-header").append(closeButton);
|
||||||
} else {
|
} else {
|
||||||
closeButton.css("margin-top", "-10px").prependTo(body);
|
closeButton.css("margin-top", "-10px").prependTo(body);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user