# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string
# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string
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.
# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html><head> | |
<title>Fork-A-Twitter-Client</title> | |
<!-- | |
Basic OniApollo/StratifiedJS Twitter Client application scaffold. | |
See http://fatc.onilabs.com/ | |
THIS FILE IS IN THE PUBLIC DOMAIN. | |