emposha / FCBKcomplete

Jquery facebook like(fancy) multi-select
http://www.emposha.com
383 stars 116 forks source link

'newel' row displayed when there's a matching result #4

Closed jstayton closed 14 years ago

jstayton commented 14 years ago

Hi Emposha,

Love the new 'delay' feature and all the continuous work you're putting into FCBKcomplete!

I've noticed that when 'newel' is enabled, JSON results that match exactly are still displayed. Case in point: http://grab.by/grabs/3bf93856a93b5c89346106367b2c4a3e.png — there is already a "food" result in the database, which is returned in the JSON, but the 'newel' row with the exact same text is still displayed. I think that if a JSON result matches exactly, the 'newel' row should be removed.

Here's the exact code I'm using:

$('#myFieldId').fcbkcomplete({ json_url: '/my/url', filter_selected: true, firstselected: true, newel: true, delay: 500 });

Again, thanks for all your work!

emposha commented 14 years ago

Hi, you can use "filter_selected" that able to filter already selected items.

jstayton commented 14 years ago

Hi Emposha,

Thanks for your reply! Maybe I don't understand 'filter_selected' completely, but I have it set to 'true' and the problem still exists. Is it the combination of setting 'newel' to 'true' as well?

german-bortoli commented 13 years ago

I have the same problem, and didn't work with filter_selected