max-favilli/tagmanager — pull request #28 by TomHAnderson (2012-11-06 19:34:26+00:00)
Title: Prep for bootstrap non-default-select typeahead

I rewrote nearly all the code in tagmanager to use events instead of local variables and removed all typeahead logic because that configuration should be done in the delegate (now simplified to just typeahead). There is no logical reason to rewrite bootstrap configuration as part of the tagmanager configuration. Just use the default bootstrap configuration and pass it to the typeahead object.

I wrote this because I need a tag manager which does not require a pre-selected list. e.g. using typeahead if you have
[three]
type
[th]
then
[three]
will be selected from the list an there's no way to unselect it and there's no way to add
[th]
as a tag because of the existing
[three]

This is ready for production but the configuration has changed as documented in the example directory.

New functionality includes a method to execute when a duplicate tag is encountered, ajaxAdd and ajaxDelete.