Sha256: 5f4ba6bb4c0f395020dde347c68af7318d1593360d67d15e0250336980486ecd

Contents?: true

Size: 436 Bytes

Versions: 22

Compression:

Stored size: 436 Bytes

Contents

pageflow.linkmapPage.AudioFileAreaType = Backbone.Model.extend({
  defaults: function() {
    return {
      label: I18n.t('pageflow.linkmap_page.editor.area_types.audio_file')
    };
  },

  initialize: function(attributes, options) {
    this.pageId = options.pageConfiguration.getRoutableId();
  },

  selected: function() {
    pageflow.editor.selectFile('audio_files', 'linkmapPage.newArea', {
      id: this.pageId
    });
  }
});

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
pageflow-linkmap-page-0.2.0 app/assets/javascript/pageflow/linkmap_page/editor/models/audio_file_area_type.js
pageflow-linkmap-page-0.1.0 app/assets/javascript/pageflow/linkmap_page/editor/models/audio_file_area_type.js