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

Add the "confirmclose" event #75

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from

Conversation

pvgoran
Copy link
Contributor

@pvgoran pvgoran commented Jul 5, 2017

I needed the ability to prevent the popup from being closed under certain conditions, for example, to allow the user to double-check and either confirm or cancel close. (This ability is present in https://github.com/jquerytools/jquerytools which I try to migrate from.) So I added the confirmclose event that is called before any changes are made, if the event returns non-true, then close is cancelled.

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

Successfully merging this pull request may close these issues.

1 participant