I'm trying to use Jquery UI's autocomplete and have the following code
$( '#searchbar' ).autocomplete
source: ( request, response ) ->
$.ajax({
url: "$$ apiUrl pt.casemanagement $$/case/search"
})
success: ( data ) ->
response([
{ label: "Example", value: 'Testing'}
])
I'm basically just waiting for the success and injecting a random label and value into the response for testing purposes. The bar is definitely sending the GET and getting a 200. I can even see the values from the server, but for whatever reason it doesnt seem like anything is being populated in the searchbar. I should be able (as far as I understand) to type 'E' and see 'Example' auto suggested, right?
Does this syntax seem wrong?