mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
ENHANCEMENT: Hide the search bar in Chosen dropdown fields when list is reasonably short.
This commit is contained in:
parent
c91e855f35
commit
6e2d6c2782
@ -23,6 +23,7 @@ jQuery.noConflict();
|
|||||||
var applyChosen = function(el){
|
var applyChosen = function(el){
|
||||||
if(el.outerWidth()){
|
if(el.outerWidth()){
|
||||||
el.chosen({
|
el.chosen({
|
||||||
|
'disable_search_threshold' : 20,
|
||||||
'allow_single_deselect': true
|
'allow_single_deselect': true
|
||||||
}).addClass("has-chzn");
|
}).addClass("has-chzn");
|
||||||
// Copy over title attribute if required
|
// Copy over title attribute if required
|
||||||
|
Loading…
x
Reference in New Issue
Block a user