Sha256: d57ec216be0a3ec4958591642a69573fbf9aa0d9c31d3c9f2e09159474d01d02

Contents?: true

Size: 497 Bytes

Versions: 11

Compression:

Stored size: 497 Bytes

Contents

pageflow.chart.ScrapedSiteStatusView = Backbone.Marionette.ItemView.extend({
  template: 'pageflow/chart/editor/templates/scraped_site_status',
  className: 'scraped_site_status',

  modelEvents: {
    change: 'update'
  },

  onRender: function() {
    this.update();
  },

  update: function() {
    this.$el.toggleClass('processed', this.model.isProcessed());
    this.$el.toggleClass('failed', this.model.isFailed());
    this.$el.toggleClass('processing', this.model.isProcessing());
  }
});

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pageflow-chart-2.1.0 app/assets/javascripts/pageflow/chart/editor/views/scraped_site_status_view.js
pageflow-chart-2.0.0 app/assets/javascripts/pageflow/chart/editor/views/scraped_site_status_view.js
pageflow-chart-1.2.0 app/assets/javascripts/pageflow/chart/editor/views/scraped_site_status_view.js
pageflow-chart-1.1.0 app/assets/javascripts/pageflow/chart/editor/views/scraped_site_status_view.js
pageflow-chart-1.0.1 app/assets/javascripts/pageflow/chart/editor/views/scraped_site_status_view.js
pageflow-chart-1.0.0 app/assets/javascripts/pageflow/chart/editor/views/scraped_site_status_view.js
pageflow-chart-0.2.2 app/assets/javascripts/pageflow/chart/editor/views/scraped_site_status_view.js
pageflow-chart-0.2.1 app/assets/javascripts/pageflow/chart/editor/views/scraped_site_status_view.js
pageflow-chart-0.2.0 app/assets/javascripts/pageflow/chart/editor/views/scraped_site_status_view.js
pageflow-chart-0.1.1 app/assets/javascripts/pageflow/chart/editor/views/scraped_site_status_view.js
pageflow-chart-0.1.0 app/assets/javascripts/pageflow/chart/editor/views/scraped_site_status_view.js