ENHANCEMENT: Hide the search bar in Chosen dropdown fields when list is reasonably short.

This commit is contained in:
unclecheese 2012-07-15 22:54:53 -03:00 committed by Ingo Schommer
parent 838b5bc78d
commit d571cdcc85

View File

@ -23,6 +23,7 @@ jQuery.noConflict();
var applyChosen = function(el){
if(el.outerWidth()){
el.chosen({
'disable_search_threshold' : 20,
'allow_single_deselect': true
}).addClass("has-chzn");
// Copy over title attribute if required