Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…option
  • Loading branch information...
commit c801671a9090a917b91884d6203b66918f8aee1a 1 parent 8b2cb9a
@halkyon halkyon authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 admin/javascript/LeftAndMain.js
View
4 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.
Something went wrong with that request. Please try again.