MCPcopy Create free account
hub / github.com/codecombat/codecombat / source

Method source

app/views/teachers/RequestQuoteView.js:157–160  ·  view source on GitHub ↗
(query, callback)

Source from the content-addressed store, hash-verified

155
156 $('#organization-control').algolia_autocomplete({ hint: false }, [{
157 source (query, callback) {
158 return algolia.schoolsIndex.search(query, { hitsPerPage: 5, aroundLatLngViaIP: false }).then(answer => callback(answer.hits)
159 , () => callback([])) // eslint-disable-line n/no-callback-literal
160 },
161 displayKey: 'name',
162 templates: {
163 suggestion (suggestion) {

Callers

nothing calls this directly

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected