dirty_form
dirty_form copied to clipboard
clean_form() is not working correctly
Hi,
In clean_form() method, you're calling dirtyform.reset() :
if(dirtyform.is('form')) {
dirtyform.reset().find('.changed:input').each(function(){
$(this).trigger($.DirtyForm.monitorEvent + '.dirty_form');
});
}
A javascript error occurs :
dirtyform.reset is not a function
It seems that the reset() function exists only in javascript form object but not in jQuery objects.
I removed the reset() call and it worked. Thank you for your plugin.