drewwilson / AutoSuggest

jQuery AutoComplete Plugin
http://code.drewwilson.com/entry/autosuggest-jquery-plugin
86 stars 46 forks source link

Add configuration option to activate or deactivate search #6

Open wcolbert opened 13 years ago

wcolbert commented 13 years ago

Hey Drew, Great job on the plugin. For the application I am building, I needed to disable the search that is done on the results data I receive via an AJAX request. I added a "searchActive" configuration option which is defaulted to true. If set to true the search feature is activated. If set to false, the search feature is deactivated and all results are shown as they are delivered to the autoSuggest script.

I could see this being useful for those that want to use the plugin, but want to perform the searches to the datasets on the backend, thus delivering less results to the client.