Permalink
Browse files

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

…option
  • Loading branch information...
1 parent 8b2cb9a commit c801671a9090a917b91884d6203b66918f8aee1a @halkyon halkyon committed Jun 15, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 admin/javascript/LeftAndMain.js
@@ -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 {

0 comments on commit c801671

Please sign in to comment.