Skip to content

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

@lvitals

Description

@lvitals

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions