data-confirm-modal
data-confirm-modal copied to clipboard
Control the confirmation event, to close the modal only when it succeeds
Hi, How can I control the confirmation event, to close the modal only when it succeeds? Do not have any option to set the backdrop and keyboard?
ex. $('#myModal').modal({backdrop: 'static', keyboard: false})
I noticed that every time he makes a confirmation executed
modal.find('.commit').on('click', function () {
if (options.onConfirm && options.onConfirm.call)
options.onConfirm.call();
modal.modal('hide');
});