Commit 0bdcf2e1 authored by Cedric Gatay's avatar Cedric Gatay

Chosen 0.9.8 + Autocomplete contains

Bumped Chosen to 0.9.8 (latest) and added default option to allow autocompletes to find items containing entered text.
parent 2e54ac17
...@@ -79,3 +79,13 @@ function showDiff(link) { ...@@ -79,3 +79,13 @@ function showDiff(link) {
$(link).next('table').show(); $(link).next('table').show();
$(link).remove(); $(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);
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment