codedance / jquery.AreYouSure

A light-weight jQuery "dirty forms" Plugin - it monitors html forms and alerts users to unsaved changes if they attempt to close the browser or navigate away from the page. (Are you sure?)
507 stars 145 forks source link

don't reset dirty status on submit #107

Open afdev82 opened 8 years ago

afdev82 commented 8 years ago

It would be nice to have an option to not reset / delete the dirty class on submit.
A possible use case is when I have a form submitted via ajax and different steps to complete.
For each step I have a submit, but I don't want to leave the page before the last step.
I could also make a pull request for this feature.