fitiskin / jquery-autocompleter

Easy customisable and with localStorage cache support.
https://fitiskin.ru/jquery-autocompleter/
MIT License
176 stars 85 forks source link

Add customQuery option #13

Closed THernandez03 closed 6 years ago

THernandez03 commented 9 years ago

In some cases, the source url has another parameter name like q instead of query, so this commit adds customQuery to replace that name.

fitiskin commented 6 years ago

Thanks @THernandez03

This can be done with combine option in this way:

combine: ({ query }) => ({
  q: query
})

I have updated the readme and passed object with default params to combine function.

p.s. Better late than never %)