AnanthaKN / jquery-in-place-editor

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

Cancel doesn't work (by esc nor by cancel button) #88

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use current version 2.2.1 in example page
2. Try to edit data and hit esc key
3. Data will be updated not canceled

What version of the product are you using? On what operating system?
I've downloaded current bundle from Jan 27, 2011. Version used in demo page 
works fine. I've notice that source in example page doesn't have following 
lines in handleCancelEditor function:

        if (hasContent(enteredText) 
            && ! this.isDisabledDefaultSelectChoice())
            this.setClosedEditorContent(enteredText);

what I assume might cause this bug.

Please provide any additional information below.
I'm also confused what is the current version. Bundle is named 2.2.1 but in 
file source there is a Version 2.3.0 - please synchronize both numerations. 

Original issue reported on code.google.com by marcin.c...@gmail.com on 19 Mar 2011 at 9:29

GoogleCodeExporter commented 8 years ago
I am having this problem too! I can't seem to figure it out. I turned on the 
buttons and clicked cancel just to be sure and it still posted my edits. I 
don't understand.

Original comment by pel...@gmail.com on 2 Mar 2012 at 9:52

GoogleCodeExporter commented 8 years ago
Turns out the edits were NOT being saved, just didn't revert. As per another 
issue (67) adding this line fixed this for me:
I add in line 377:
this.restoreOriginalValue();

Original comment by pel...@gmail.com on 5 Mar 2012 at 4:34

GoogleCodeExporter commented 8 years ago
http://code.google.com/p/jquery-in-place-editor/issues/detail?id=67

Original comment by dave.jar...@gmail.com on 14 Apr 2012 at 11:21