Skip to content

Commit

Permalink
Change a couple of prototype-style references into jQuery references.…
Browse files Browse the repository at this point in the history
… Fixes group display on search and deselect issues.
  • Loading branch information
pfiller committed Jul 20, 2011
1 parent a3c9ea9 commit e4a8f08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions chosen/chosen.jquery.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions coffee/chosen.jquery.coffee
Expand Up @@ -379,7 +379,7 @@ class Chosen
result_data.selected = false

@form_field.options[result_data.options_index].selected = false
result = $(@form_field.id + "chzn_o_" + pos)
result = $("#" + @form_field.id + "chzn_o_" + pos)
result.removeClass("result-selected").addClass("active-result").show()

this.result_clear_highlight()
Expand Down Expand Up @@ -407,7 +407,7 @@ class Chosen
for option in @results_data
if not option.disabled and not option.empty
if option.group
$(option.dom_id).hide()
$('#' + option.dom_id).hide()
else if not (@is_multiple and option.selected)
found = false
result_id = option.dom_id
Expand Down

0 comments on commit e4a8f08

Please sign in to comment.