Answer the question
In order to leave comments, you need to log in
How to stop a script from running until a button is pressed (Javascript)?
There is a normal bootstrap modal window, I want to confirm the closing, that is, when the user wants to close the modal window, the second modal window pops up with a warning "Are you sure you want to close the contract window? yes/no". The bootstrap has an event for closing the window, as well as an action for opening, I did this
$('#modal').on('hide.bs.modal', function (e) {
$('#modal2').modal('show');
});
$('#modal').on('hide.bs.modal', function (e) {
alert ('Вы точно хотите закрыть окно договора?');
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question