Skip to content

Commit

Permalink
Merge pull request harvesthq#1478 from harvesthq/change-list-showing-…
Browse files Browse the repository at this point in the history
…event-order

Trigger/Fire Results Showing Event After Winnow
  • Loading branch information
pfiller committed Feb 7, 2014
2 parents 190deeb + 3de4433 commit dab3132
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions coffee/chosen.jquery.coffee
Expand Up @@ -228,14 +228,13 @@ class Chosen extends AbstractChosen
return false

@container.addClass "chosen-with-drop"
@form_field_jq.trigger("chosen:showing_dropdown", {chosen: this})

@results_showing = true

@search_field.focus()
@search_field.val @search_field.val()

this.winnow_results()
@form_field_jq.trigger("chosen:showing_dropdown", {chosen: this})

update_results_content: (content) ->
@search_results.html content
Expand Down
3 changes: 1 addition & 2 deletions coffee/chosen.proto.coffee
Expand Up @@ -221,14 +221,13 @@ class @Chosen extends AbstractChosen
return false

@container.addClassName "chosen-with-drop"
@form_field.fire("chosen:showing_dropdown", {chosen: this})

@results_showing = true

@search_field.focus()
@search_field.value = @search_field.value

this.winnow_results()
@form_field.fire("chosen:showing_dropdown", {chosen: this})

update_results_content: (content) ->
@search_results.update content
Expand Down

0 comments on commit dab3132

Please sign in to comment.