Skip to content

Commit

Permalink
allow_single_deselect hack for ajax-chosen compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
waymondo committed Oct 30, 2012
1 parent 4f2f6ce commit 6f12beb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vendor/assets/javascripts/lib/abstract-chosen.coffee
Expand Up @@ -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
Expand Down

0 comments on commit 6f12beb

Please sign in to comment.