mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX #7394: Allow unselect dropdowns in chosen if there's an empty option
This commit is contained in:
parent
8b2cb9a7d9
commit
c801671a90
@ -22,7 +22,9 @@ jQuery.noConflict();
|
||||
// with css applied and got a width value.
|
||||
var applyChosen = function(el){
|
||||
if(el.outerWidth()){
|
||||
el.chosen().addClass("has-chzn");
|
||||
el.chosen({
|
||||
'allow_single_deselect': true
|
||||
}).addClass("has-chzn");
|
||||
// Copy over title attribute if required
|
||||
if(el.attr('title')) el.siblings('.chzn-container').attr('title', el.attr('title'));
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user