Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lvitals opened this issue Feb 9, 2018 · 0 comments
Open

Comments

@lvitals
Copy link

lvitals commented Feb 9, 2018

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');
  });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant