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.
This commit is contained in:
parent
2e54ac17c5
commit
0bdcf2e1dc
2 changed files with 226 additions and 165 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue