Merge pull request #828 from CedricGatay/feature/chosen_0.9.8_searchContains

Chosen 0.9.8 + Autocomplete contains
This commit is contained in:
mikkyhouse 2012-05-17 09:46:03 -07:00
commit 2b319d0496
2 changed files with 226 additions and 165 deletions

View file

@ -79,3 +79,13 @@ function showDiff(link) {
$(link).next('table').show();
$(link).remove();
}
(function($){
var _chosen = $.fn.chosen;
$.fn.extend({
chosen: function(options) {
var default_options = {'search_contains' : 'true'};
$.extend(default_options, options);
return _chosen.apply(this, [default_options]);
}})
})(jQuery);