loopj/jquery-tokeninput — Issue #285: How do I add manual search option
Author: Shehabic
Created: 2012-03-03 12:58:14+00:00
State: open

I need to add an option to search manually e.g. a function called "manualSearch" will take the query and do the search and return results,

I did the following but it didn't work:

1-add new setting "searchFunction"
2-changed the function "run_search"

to support the setting above
```
if(settings.searchFunction) {
settings.search_function(query,hidden_input,input_box,this,settings);
}
else if(settings.url) {
```

then in the searchFunction

I failed to trigger populate_dropdown ...

a-how do I reference to the tokenInput being used ?
b-If I'm doing this the wrong way please let me know . .