Merge pull request #643 from unclecheese/patch-4

ENHANCEMENT: Hide the search bar in Chosen dropdown fields when list is reasonably short.
This commit is contained in:
Ingo Schommer 2012-07-16 01:07:48 -07:00
commit 938bf14d16

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