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

Allow multiple confirmation messages #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jsmartt
Copy link

@jsmartt jsmartt commented Mar 25, 2016

This PR adds the ability to set the message on a per-form basis, for the case that you have multiple forms you want checked. For example:

$('form.class1').areYouSure( {'message': 'You have unsaved changes to form 1!'} )
$('form.class2').areYouSure( {'message': 'You have unsaved changes to form 2!'} )

It's a pretty simple change, and @codedance, please review the return statement; I'm no javascript expert, so there may be some error handling that needs to be done. Also, I'm not sure that it will ever return settings.message...

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