dirty_form icon indicating copy to clipboard operation
dirty_form copied to clipboard

clean_form() is not working correctly

Open etiennelb opened this issue 13 years ago • 0 comments

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.

etiennelb avatar Jun 17 '11 14:06 etiennelb