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
parent c91e855f35
commit 6e2d6c2782

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