unepwcmc/SAPI

View on GitHub
app/assets/javascripts/species/mixins/multiple_selection_search_button.js.coffee

Summary

Maintainability
Test Coverage
Species.MultipleSelectionSearchButton = Ember.Mixin.create
  tagName: 'a'
  href: '#'
  classNames: ['link']
  classNameBindings: ['loading']
  shortPlaceholder: true

  loading: ( ->
    "loading" unless @get('loaded')
  ).property('loaded').volatile()

  template: Ember.Handlebars.compile("{{view.summary}}"),