[jQuery] Re: Make jeditable select show the option's text instead of value

2009-03-26 Thread Mika Tuupola



On Mar 24, 2009, at 12:16 PM, gringo wrote:


The selects options are displayed correctly when I click on the
editable area but when I select something - for example 'blue' - the
'2' string is used to replace original text instead of 'blue'.
Looks like this is a bug in jquery.


Jeditable displays the same string your saving script echoes back.  
Echo back "blue" from the saving script to display "blue".


--
Mika Tuupola
http://www.appelsiini.net/



[jQuery] Re: Make jeditable select show the option's text instead of value

2009-03-24 Thread gringo

I have the same problem. I have this:

$(".category .jeditable", el).editable(submit_edited_data, {
  data: "{'1':'blue', '2':'red', '3':'green'}",
  type: 'select',
  submit: "ok"
});

The selects options are displayed correctly when I click on the
editable area but when I select something - for example 'blue' - the
'2' string is used to replace original text instead of 'blue'.
Looks like this is a bug in jquery.

Thanks

On Mar 17, 2:18 pm, FSan  wrote:
> I mean
> If I have this:
>
> {'E':'Letter E','F':'Letter F','G':'Letter G'}
>
> and the corresponding generated select with options.
>
> I want jeditable to display for example "Letter F" instead of  "F"
> after selection.
>
> Is it possible?
>
> Thanks