Hi I am sending some information from my modal to my php server. Until the php server does not respond, I do not want the modal being closed in any way (clicking outside, pressing ESC, clicking on close buttons etc). So I have used the following code:
$('#modal').on('hide.bs.modal', function (e) {
e.preventDefault();
});
Once the server has responded, how can I revert to the default behaviour of the modal? I tried the following but it does not work:
$('#modal').on('hide.bs.modal', function (e) {
return true;
});