Skip to content

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