ajax-chosen icon indicating copy to clipboard operation
ajax-chosen copied to clipboard

Added Prototype version

Open ndbroadbent opened this issue 12 years ago • 4 comments

Support the Prototype javascript framework.

Please also be aware that we have released an ajax-chosen-rails gem for use with Rails 3.1 applications. This gem has been released with the prototype version included.

ndbroadbent avatar Jan 03 '12 06:01 ndbroadbent

I'm a bit confused by this. Where is the Chosen class that is being extended by ajaxChosen? Is that a part of the ajax-chosen-rails gem?

meltingice avatar Jan 06 '12 22:01 meltingice

Hi,

The Chosen class is just the original chosen javascript library. In the prototype version of chosen, you call

new Chosen(element);

So the prototype version of ajaxChosen wraps the Chosen object, but binds to the 'keyup' event on the input after chosen is initialized. You call it like this:

new ajaxChosen(element);

I'll update the README with this info too, sorry, I should have added that to the pull request

ndbroadbent avatar Jan 07 '12 01:01 ndbroadbent

@meltingice What is the status of this PR? Can this be merged? Seems like a great addition.

manuelmeurer avatar Jan 11 '13 21:01 manuelmeurer

Too many bugs to use

evilguc avatar Apr 23 '13 07:04 evilguc