BUGFIX #7394: Allow unselect dropdowns in chosen if there's an empty option

This commit is contained in:
Sean Harvey 2012-06-15 14:32:21 +12:00
parent 8b2cb9a7d9
commit c801671a90

View File

@ -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 {