From d571cdcc85daa76f1d529f651a3725b8cae1790f Mon Sep 17 00:00:00 2001 From: unclecheese Date: Sun, 15 Jul 2012 22:54:53 -0300 Subject: [PATCH] ENHANCEMENT: Hide the search bar in Chosen dropdown fields when list is reasonably short. --- admin/javascript/LeftAndMain.js | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/javascript/LeftAndMain.js b/admin/javascript/LeftAndMain.js index 8daabbd86..0b69a1139 100644 --- a/admin/javascript/LeftAndMain.js +++ b/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