emposha / FCBKcomplete

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

Reset the fcbk #22

Closed victormartins closed 13 years ago

victormartins commented 13 years ago

I'm using the FCBK in a modal window. Everytime the modal is called I run the FCBK. The problem is when the modal is called twice or more without any page reload. The FCBK will duplicate everything. I managed to remove the duplicates of ul.holder and div.facebook-auto but even if I remove the .bit-boxes the data remais in memory and prevents from adding tags with those names. How can I complety reset FCBK everythime I call it?

Thanks in Advance.

fizyk commented 13 years ago

do you have cache enabled?

victormartins commented 13 years ago

No, this is my options: cache: false, filter_case: false, filter_hide: true, maxshownitems: 5, maxitems:10, newel: false, filter_selected: true, chooseOnTab:false, . Do you have any trigger to delete items? or delete all items? That would be great.

fizyk commented 13 years ago

no, in my case it was the cache that duplicated items.

emposha commented 13 years ago

solved at 2.7.5 you need to call method destroy before you call one fcbkcomplete again

victormartins commented 13 years ago

Thanks, good work.