Sha256: 09248c04a87989105b53036999fed357e5eb4c122b7585915b67c566b92492d3

Contents?: true

Size: 914 Bytes

Versions: 8

Compression:

Stored size: 914 Bytes

Contents

pageflow.app.addInitializer(function(options) {
  pageflow.files = pageflow.FilesCollection.createForFileTypes(pageflow.editor.fileTypes, options.files);

  pageflow.imageFiles = pageflow.files.image_files;
  pageflow.videoFiles = pageflow.files.video_files;
  pageflow.audioFiles = pageflow.files.audio_files;

  pageflow.pages = new pageflow.PagesCollection(options.pages);
  pageflow.chapters = new pageflow.ChaptersCollection(options.chapters);
  pageflow.entry = new pageflow.Entry(options.entry);
  pageflow.theming = new pageflow.Theming(options.theming);

  pageflow.pages.sort();

  pageflow.editor.failures.watch(pageflow.entry);
  pageflow.editor.failures.watch(pageflow.pages);
  pageflow.editor.failures.watch(pageflow.chapters);

  pageflow.savingRecords = new pageflow.SavingRecordsCollection();
  pageflow.savingRecords.watch(pageflow.pages);
  pageflow.savingRecords.watch(pageflow.chapters);
});

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pageflow-0.8.2 app/assets/javascripts/pageflow/editor/initializers/setup_collections.js
pageflow-0.8.1 app/assets/javascripts/pageflow/editor/initializers/setup_collections.js
pageflow-0.8.0 app/assets/javascripts/pageflow/editor/initializers/setup_collections.js
pageflow-0.7.2 app/assets/javascripts/pageflow/editor/initializers/setup_collections.js
pageflow-0.7.1 app/assets/javascripts/pageflow/editor/initializers/setup_collections.js
pageflow-0.7.0 app/assets/javascripts/pageflow/editor/initializers/setup_collections.js
pageflow-0.6.0 app/assets/javascripts/pageflow/editor/initializers/setup_collections.js
pageflow-0.5.0 app/assets/javascripts/pageflow/editor/initializers/setup_collections.js