AnanthaKN / jquery-in-place-editor

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

default_text not displaying after edit/cancel #82

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Bind an empty field with no text
2. default_text should (and does) display
3. Click to edit field, do not enter any characters
4. Cancel editing
5. default_text is no longer displayed, now impossible to edit

Please provide any additional information below.
Demo of issue can be found here:
http://jsfiddle.net/coreydownie/PbHWE/

Original issue reported on code.google.com by corey.do...@gmail.com on 28 Jan 2011 at 5:19

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Actually, in the "reinit" function @line 128 you need to put the check in for 
default value:

reinit: function() {
                if (this.shouldDelayReinit)
                        return;

                this.setDefaultTextIfNeccessary();  // -- Fix for Default Value on Cancel or Save of Blank field.
                this.triggerCallback(this.settings.postclose, /* DEPRECATED in 2.1.0 */ this.dom);
                this.triggerDelegateCall('didCloseEditInPlace');

                this.markEditorAsInactive();
                this.connectOpeningEvents();
},

Original comment by caliquik...@gmail.com on 18 Feb 2011 at 11:41

GoogleCodeExporter commented 8 years ago
I hit exactly the same problem. Your fix works for me. Thanks!

Original comment by l.gibe...@gmail.com on 1 Sep 2011 at 9:14

GoogleCodeExporter commented 8 years ago
Muito bom! Estava com esse problema aqui! Acrescentei a linha 
"this.setDefaultTextIfNeccessary();  // -- Fix for Default Value on Cancel or 
Save of Blank field." e resolveu!

Obrigado

Original comment by gilmarhl...@gmail.com on 23 Sep 2011 at 3:19

GoogleCodeExporter commented 8 years ago
Same problem. So far "fixed" in a hack. Waiting for the release of this.

Original comment by Katherin...@gmail.com on 17 Oct 2011 at 7:50

GoogleCodeExporter commented 8 years ago
Still not fixed. Thanks for the patch caliquik.

Original comment by ame...@gmail.com on 26 Feb 2012 at 8:09

GoogleCodeExporter commented 8 years ago
Also, if deleting all of existing text, same problem. Can't edit without 
reloading page.

Original comment by dave.ald...@gmail.com on 30 Sep 2012 at 7:54

GoogleCodeExporter commented 8 years ago
It's works for me. Thanks you!

Original comment by i.jumpk...@gmail.com on 25 Sep 2013 at 8:43