Skip to content

clean_form() is not working correctly #5

Description

@etiennelb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions