Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KG - Service Search No Results #780

Merged
merged 4 commits into from Dec 5, 2016
Merged

Conversation

kayla-glick
Copy link
Contributor

The controller code was causing the No Results to be displayed like a service. Typeahead has the custom template notFound that we can use instead. We can render a quick Handlebar template for that case.

@@ -81,11 +81,13 @@ $(document).ready ->
<span><strong>Abbreviation: {{abbreviation}}</strong></span><br>
<span><strong>CPT Code: {{cpt_code}}</strong></span>
</button>')
notFound: Handlebars.compile('<div class="tt-suggestion">No Results</div>')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have to use Handlebars here?

}
}
).on('typeahead:render', (event, a, b, c) ->
$('[data-toggle="tooltip"]').tooltip()
).on('typeahead:select', (event, suggestion) ->
asd
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a typo?

@jleonardw9 jleonardw9 merged commit 2a91679 into master Dec 5, 2016
@jleonardw9 jleonardw9 deleted the kg-no_results_service_search_bug branch December 5, 2016 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants