hanigamal / jquery-in-place-editor

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

editInPlace text field disappears #131

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. If the user edits an input to blank ('')

What is the expected output? What do you see instead?
I'd like to see the default text '(Click here to add text)'

Other notes:
in version 3.2.0
I suggest the following fixes:

  1) at the end of the function "handleCancelEditor" (line 376)
     insert code:
           this.setDefaultTextIfNeccessary();
     (end insert)

  2) at the end of the function "handleSubmitToCallback" (line 446)
     insert code:
           this.setDefaultTextIfNeccessary();
     (end insert)

After doing this, the issue appears to be fixed.

Original issue reported on code.google.com by brooke.b...@gmail.com on 2 Jun 2013 at 6:18