Skip to content

Instantly share code, notes, and snippets.

@F0REacH
Forked from sshaw/gist:2174243
Last active December 11, 2015 23:39
Show Gist options
  • Save F0REacH/4678575 to your computer and use it in GitHub Desktop.
Save F0REacH/4678575 to your computer and use it in GitHub Desktop.
// Tested with 1.0.0-pre.2, 0.9.7 or less does not work.
// Chosen modified to search on @results_data[n].text not .html
App.ChosenMultipleSelect = Em.Select.extend({
multiple: true,
attributeBindings: [ 'multiple', 'data-placeholder', 'data-no_results_text'],
didInsertElement: function() {
this._super();
this.$().chosen();
},
selectionChanged: function() {
this.$().trigger('liszt:updated');
}.observes('selection')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment