Skip to content

Instantly share code, notes, and snippets.

@jlehman
Last active December 16, 2015 13:48
Show Gist options
  • Select an option

  • Save jlehman/5443984 to your computer and use it in GitHub Desktop.

Select an option

Save jlehman/5443984 to your computer and use it in GitHub Desktop.
addLocales: ->
@$("#allLocales").empty()
_that = @
_.each @locales_collection, (locale) ->
_that.$("#allLocales").append("<option value='#{locale.get('id')}'>#{locale.get('name')}</option>")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment