I am currently working on a web application using Bootstrap 3.3.7 and Bootstrap Confirmation 2.4.1. The confirmation function works effectively, but I have noticed that when the button (Delete) with the Confirmation is clicked, it results in some spacing issues between the Delete and Close buttons, as illustrated in the images below:
View without confirmation:
https://i.sstatic.net/l4rkm.png
View after confirmation pops up:
https://i.sstatic.net/PAnOy.png
This is the code snippet for the dialog box containing the Confirmation button:
<a href="#divResults" data-toggle="modal" data-target="#divResults" class="btn btn-info btn-lg">
<span class="glyphicon glyphicon-list-alt"></span> Table
</a>
... (rest of the code remains unchanged)
To style the title of the Confirmation, custom CSS can be used:
.popover-title {
font-weight: bold;
}
The JavaScript function responsible for handling the confirmation process:
$(function () {
$("[data-toggle=confirmation]").confirmation({
rootSelector: "[data-toggle=confirmation]",
onConfirm: function () {
}
});
});
Here is a link to a Fiddle demonstrating an example scenario:
https://jsfiddle.net/fanmixco/o2mre604/16/
I have not been able to find any official documentation specifying how to detect when the Confirmation appears or closes. If anyone has suggestions on how to address this issue, your input would be greatly appreciated. Thank you.