[jQuery] Re: jEditable on blank field

2007-06-12 Thread Josh Nathanson
ng it extensively on an in-house application. -- Josh - Original Message - From: "Mika Tuupola" <[EMAIL PROTECTED]> To: "Erik Beeson" <[EMAIL PROTECTED]> Cc: Sent: Monday, June 11, 2007 11:32 PM Subject: [jQuery] Re: jEditable on blank field On Jun

[jQuery] Re: jEditable on blank field

2007-06-11 Thread Mika Tuupola
On Jun 12, 2007, at 3:49 AM, Erik Beeson wrote: Obviously it would be trivial for me to just edit the plugin, but I try to avoid that as much as possible (makes upgrading a nightmare), and this seems like a legitimate issue. If you try one of the jEditable demos and remove all of the text

[jQuery] Re: jEditable on blank field

2007-06-11 Thread Erik Beeson
I figured it out. If a function is given for the "data" option, it will be called when creating the input field, and the return from that will be used to fill the field. So I just did this: data: function(value) { return (value == ' ') ? '' : value; } Works great! --Erik On 6/11/07, Erik Bee