Permalink
Browse files

ENHANCEMENT: Hide the search bar in Chosen dropdown fields when list …

…is reasonably short.
  • Loading branch information...
1 parent 838b5bc commit d571cdcc85daa76f1d529f651a3725b8cae1790f @unclecheese unclecheese committed with chillu Jul 16, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 admin/javascript/LeftAndMain.js
@@ -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

0 comments on commit d571cdc

Please sign in to comment.