data-confirm-modal icon indicating copy to clipboard operation
data-confirm-modal copied to clipboard

Control the confirmation event, to close the modal only when it succeeds

Open lvitals opened this issue 7 years ago • 0 comments

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');
  });

lvitals avatar Feb 09 '18 19:02 lvitals