Skip to content

Instantly share code, notes, and snippets.

@digilord
Created January 7, 2014 19:24
Show Gist options
  • Select an option

  • Save digilord/8305233 to your computer and use it in GitHub Desktop.

Select an option

Save digilord/8305233 to your computer and use it in GitHub Desktop.
@Lexicon = new Meteor.Collection "lexicon"
if Meteor.isClient
Template.language_dropdown.rendered = ->
Lexicon.distinct "lang", (err, res) =>
$("#langs").autocomplete {source: res}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment