Sha256: b20f69b2e61ea6b9d39381893ec793012439829e849b59a32b1ce881232345ad

Contents?: true

Size: 513 Bytes

Versions: 9

Compression:

Stored size: 513 Bytes

Contents

pageflow.ImageFile = pageflow.ReusableFile.extend({
  stages: [
    {
      name: 'uploading',
      activeStates: ['uploading'],
      failedStates: ['uploading_failed']
    },
    {
      name: 'processing',
      activeStates: ['processing'],
      finishedStates: ['processed'],
      failedStates: ['processing_failed']
    }
  ],

  readyState: 'processed',

  getBackgroundPositioningImageUrl: function() {
    return this.get('url');
  },

  isPositionable: function() {
    return this.isReady();
  }
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pageflow-15.0.2 app/assets/javascripts/pageflow/editor/models/image_file.js
pageflow-15.0.1 app/assets/javascripts/pageflow/editor/models/image_file.js
pageflow-15.0.0 app/assets/javascripts/pageflow/editor/models/image_file.js
pageflow-15.0.0.rc2 app/assets/javascripts/pageflow/editor/models/image_file.js
pageflow-15.0.0.rc1 app/assets/javascripts/pageflow/editor/models/image_file.js
pageflow-15.0.0.beta4 app/assets/javascripts/pageflow/editor/models/image_file.js
pageflow-15.0.0.beta3 app/assets/javascripts/pageflow/editor/models/image_file.js
pageflow-15.0.0.beta2 app/assets/javascripts/pageflow/editor/models/image_file.js
pageflow-15.0.0.beta1 app/assets/javascripts/pageflow/editor/models/image_file.js