We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
Suppose I have a custom modal with a third button "Save and Leave". That is, I have three buttons, "Leave", "Stay" and "Save & Leave".
I trying to made the following:
` $('form').dirtyForms({
dialog: { title: 'Wait!', dialogID: 'custom-dialog', titleID: 'custom-title', }, message: 'Your profile details are not saved. Are you sure to leave the page?' }); $( "#save-profile" ).click(function() { $( "#profile-form" ).submit(); });
` So, when I click on the "Save" button with id="save-profile", I submit the form via Jquery.
After submit the form, how can I proceed (leaving the page) but to the desired link (just as the default behavior of Leave button)? It is possible?
Thanks for your help!
The text was updated successfully, but these errors were encountered:
I have answered a similar question on StackOverflow with an example.
Sorry, something went wrong.
Thanks for your response @NightOwl888. The example was great for me. Also I use Boostrap modals dialogs instead of JQueryUI dialogs.
No branches or pull requests
Hi,
Suppose I have a custom modal with a third button "Save and Leave". That is, I have three buttons, "Leave", "Stay" and "Save & Leave".
I trying to made the following:
`
$('form').dirtyForms({
`
So, when I click on the "Save" button with id="save-profile", I submit the form via Jquery.
After submit the form, how can I proceed (leaving the page) but to the desired link (just as the default behavior of Leave button)? It is possible?
Thanks for your help!
The text was updated successfully, but these errors were encountered: