mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT: Hide the search bar in Chosen dropdown fields when list is reasonably short.
This commit is contained in:
parent
838b5bc78d
commit
d571cdcc85
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user