max-favilli/tagmanager — pull request #93 by larukedi (2013-05-21 14:05:34+00:00)
Title: typeahead.js support

Tagmanager only works with typeahead bundled with bootstrap. I did some modifications to make it work with twitter's fully-featured typeahead.js ( https://github.com/twitter/typeahead.js ).

Since typeahead.js already has great ajax implementation, this revision disables tagmanager's ajax features when working with typeahead.js support and passes all typeahead.js parameters to its constructor directly.

``` javascript
jQuery('.tagManager').tagsManager({
prefilled: ["Pisa", "Rome"],
typeaheadJs: true,
typeaheadJsOptions: {
local: [ "Pisa", "Rome", "Milan", "Florence", "New York", "Paris", "Berlin", "London", "Izmir" ]
}
});
```