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?)
508
stars
145
forks
source link
Make addRemoveFieldsMarksDirty to respect .ays-ignore #118
If addRemoveFieldsMarksDirty is set to true, it might be nice to ignore added fields, that are marked either by applying the ays-ignore class or by setting a data attribute.
From my understanding it should be sufficient to filter the fields in line 91. As workaround one can also modify the field selector by adding ":not(.ays-ignore)".
If addRemoveFieldsMarksDirty is set to true, it might be nice to ignore added fields, that are marked either by applying the ays-ignore class or by setting a data attribute.
From my understanding it should be sufficient to filter the fields in line 91. As workaround one can also modify the field selector by adding ":not(.ays-ignore)".