Skip to content
This repository
Browse code

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

…option
  • Loading branch information...
commit c801671a9090a917b91884d6203b66918f8aee1a 1 parent 8b2cb9a
Sean Harvey authored June 15, 2012

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  admin/javascript/LeftAndMain.js
4  admin/javascript/LeftAndMain.js
@@ -22,7 +22,9 @@ jQuery.noConflict();
22 22
 		// with css applied and got a width value.
23 23
 		var applyChosen = function(el){
24 24
 			if(el.outerWidth()){
25  
-				el.chosen().addClass("has-chzn");
  25
+				el.chosen({
  26
+					'allow_single_deselect': true
  27
+				}).addClass("has-chzn");
26 28
 				// Copy over title attribute if required
27 29
 				if(el.attr('title')) el.siblings('.chzn-container').attr('title', el.attr('title'));
28 30
 			} else {

0 notes on commit c801671

Please sign in to comment.
Something went wrong with that request. Please try again.