Would be great to have Chosen as a Selection type option for exposed filter forms in views. http://drupal.org/project/better_exposed_filters does a similar thing with their module so we could lend some code from there I suppose.

Comments

Sk8erPeter’s picture

Issue tags: +exposed filters, +#views

This is exactly what I'm looking for.

Isn't a selector like the following enough?

var $select_multiple = $('select[multiple="multiple"]');

if($select_multiple.length > 0){
  // there is one or more <select> lists where multiple values can be selected
}

Is there an exact plan when to have this feature built in?
Will there be a "conflict" between Better Exposed Filters module and Chosen, if both of them are installed?

Thanks for your efforts!

duaelfr’s picture

We should maybe ask BEF to support Chosen directly.

kehan’s picture

I can see you have asked BEF to support it and they said no: #1918160: Chosen integration

hydra’s picture

Status: Active » Closed (won't fix)

Yeah and it makes sense to not integrate it. They should work side by side. If you need special handling for a specific select field, this should be handled by your themes js. You can override the Drupal.behaviors.chosen and do what ever you want with it in your theme :) Thanks for your work anyways!