Sha256: 2c8e9d9cd99ae54d30b8d206d3b4e50f4bc30c61b58e2e564b145b0946a4c8e3

Contents?: true

Size: 329 Bytes

Versions: 16

Compression:

Stored size: 329 Bytes

Contents

Dashboard.Loading =
  activate: ->
    # Only render the loading indicator after 0.25s
    @timer = Ember.run.later this, (->
      $('section.content').addClass('loading-section')
    ), 250

    return this

  deactivate: ->
    $('section.content').removeClass('loading-section')

    if @timer
      Ember.run.cancel(@timer)

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dune-dashboard-1.1.5 app/assets/javascripts/helpers/loading.coffee
dune-dashboard-1.1.4 app/assets/javascripts/helpers/loading.coffee
dune-dashboard-1.1.3 app/assets/javascripts/helpers/loading.coffee
dune-dashboard-1.1.2 app/assets/javascripts/helpers/loading.coffee
dune-dashboard-1.1.1 app/assets/javascripts/helpers/loading.coffee
dune-dashboard-1.1.0 app/assets/javascripts/helpers/loading.coffee
dune-dashboard-1.0.9 app/assets/javascripts/helpers/loading.coffee
dune-dashboard-1.0.8 app/assets/javascripts/helpers/loading.coffee
dune-dashboard-1.0.7 app/assets/javascripts/helpers/loading.coffee
dune-dashboard-1.0.6 app/assets/javascripts/helpers/loading.coffee
dune-dashboard-1.0.5 app/assets/javascripts/helpers/loading.coffee
dune-dashboard-1.0.4 app/assets/javascripts/helpers/loading.coffee
dune-dashboard-1.0.3 app/assets/javascripts/helpers/loading.coffee
dune-dashboard-1.0.2 app/assets/javascripts/helpers/loading.coffee
dune-dashboard-1.0.1 app/assets/javascripts/helpers/loading.coffee
dune-dashboard-1.0.0 app/assets/javascripts/helpers/loading.coffee