Skip to content

Commit

Permalink
BUGFIX #7394: Allow unselect dropdowns in chosen if there's an empty …
Browse files Browse the repository at this point in the history
…option
  • Loading branch information
Sean Harvey committed Jun 15, 2012
1 parent 8b2cb9a commit c801671
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin/javascript/LeftAndMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c801671

Please sign in to comment.