Skip to content
Browse files

allow_single_deselect hack for ajax-chosen compatibility

  • Loading branch information...
1 parent 4f2f6ce commit 6f12beb73a99d44ac917bad2f9603d806bbd7294 @waymondo committed Oct 30, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 vendor/assets/javascripts/lib/abstract-chosen.coffee
View
3 vendor/assets/javascripts/lib/abstract-chosen.coffee
@@ -27,7 +27,8 @@ class AbstractChosen
@results_showing = false
@result_highlighted = null
@result_single_selected = null
- @allow_single_deselect = if @options.allow_single_deselect? and @form_field.options[0]? and @form_field.options[0].text is "" then @options.allow_single_deselect else false
+ # @allow_single_deselect = if @options.allow_single_deselect? and @form_field.options[0]? and @form_field.options[0].text is "" then @options.allow_single_deselect else false
+ @allow_single_deselect = if @options.allow_single_deselect? then @options.allow_single_deselect else false
@disable_search_threshold = @options.disable_search_threshold || 0
@search_contains = @options.search_contains || false
@choices = 0

0 comments on commit 6f12beb

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