AnanthaKN / jquery-in-place-editor

Automatically exported from code.google.com/p/jquery-in-place-editor
Other
0 stars 0 forks source link

Here's a patch to prevent submission if no data changed #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have data in the cells I'm letting the person edit.  If they click the cell, 
then tab out or click on 
another cell without changing anything, there's no reason for an AJAX round 
trip or any 
notification to the user.  I have patched your great plugin to provide this 
functionality.

The default behavior is unchanged, but if the save_on_unchanged setting is 
supplied and set to 
false, the new behavior will be exhibited.

On a side note, using jquery.growl.js in the success callback is really cool, 
and was the 
motivation for this modification - no reason to growl a save when nothing was 
actually done.

The attached file has a patch as well as the full script with the change.

Thanks!

-Troy

Original issue reported on code.google.com by tlainves...@gmail.com on 9 Sep 2009 at 5:18

Attachments:

GoogleCodeExporter commented 9 years ago
I have changes in my copy of the editor at 
<http://haecker.me/trac/browser/open-source/jquery-edit-in-
place/trunk> that implement this functionaltiy and adds an option to override 
it.

Original comment by martin.h...@googlemail.com on 14 Feb 2010 at 2:32

GoogleCodeExporter commented 9 years ago
fix commited

Original comment by mhaec...@gmail.com on 23 Mar 2010 at 10:08