Skip to content

Instantly share code, notes, and snippets.

View vgirard's full-sized avatar

Vincent Girard vgirard

View GitHub Profile
@ivancrneto
ivancrneto / README.markdown
Created June 23, 2012 16:13 — forked from Yavari/README.markdown
Bootstrap's Typeahead plugin extended (allowing for AJAX functionality) among other things

This is a fork of Bootstrap Typeahead that adds minimal but powerful extensions.

This fork of the fork adds comparisons to string that have accents and prevent errors when the ajax is not complete yet.

For example, process typeahead list asynchronously and return objects

  # This example does an AJAX lookup and is in CoffeeScript
  $('.typeahead').typeahead(
    # source can be a function
    source: (typeahead, query) ->
@pezholio
pezholio / README.markdown
Created March 5, 2012 11:34 — forked from gudbergur/README.markdown
Bootstrap's Typeahead plugin extended (allowing for AJAX functionality) among other things

This is a fork of a fork of Bootstrap Typeahead that adds minimal but powerful extensions.

I've added a couple of lines to the original fork to stop the default behaviour when tabbing. For the proper source, please see the original gist.

For example, process typeahead list asynchronously and return objects

  # This example does an AJAX lookup and is in CoffeeScript
  $('.typeahead').typeahead(
    # source can be a function