mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
commit
938bf14d16
@ -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…
Reference in New Issue
Block a user