AnanthaKN / jquery-in-place-editor

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

If callback returns an empty string, edit in place always alerts #30

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create an editInPlace with a callback, e.g. something like this
            view.dom('.remaining_time').editInPlace({
                default_text: ' ',
                callback: function(unusedElementID, newContent, oldContent){
                    view.didEndInlineEditForField(newContent, 'remaining_time', 
view.nonFloatRejectingParser);
                    return newContent;
                }
            });
2. try to enter an empty string into this editable
3. see the errro message apear (that cannot be overriden by setting the 'error' 
option

What version of the product are you using? On what operating system?
1.0.1

Original issue reported on code.google.com by mhaec...@gmail.com on 23 Nov 2009 at 11:32

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed in my copy at 
<http://haecker.me/trac/browser/open-source/jquery-edit-in-place/trunk>

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

GoogleCodeExporter commented 8 years ago
fix commited

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