Sha256: ad0e27313d103938f048338d37c1cf58130d234cfde1def774f6810c4167ad00

Contents?: true

Size: 1022 Bytes

Versions: 20

Compression:

Stored size: 1022 Bytes

Contents

pageflow.linkmapPage.AreaMaskInputView = pageflow.ReferenceInputView.extend({
  choose: function() {
    return this.model.selectMask().then(function() {
      // Reject promise to prevent ReferenceInputView from settings
      // attributes again.
      return new $.Deferred().reject().promise();
    });
  },

  getTarget: function(permaId) {
    return !this.options.disabled &&
      permaId !== undefined &&
      new pageflow.linkmapPage.AreaMaskInputView.Mask({perma_id: permaId});
  }
});

pageflow.linkmapPage.AreaMaskInputView.Mask = Backbone.Model.extend({
  title: function() {
    return I18n.t('pageflow.linkmap_page.editor.views.area_mask_input_view.present');
  },

  thumbnailFile: function() {
    return new pageflow.linkmapPage.AreaMaskInputView.MaskThumbnail();
  }
});

pageflow.linkmapPage.AreaMaskInputView.MaskThumbnail = Backbone.Model.extend({
  mixins: [pageflow.stageProvider],

  thumbnailPictogram: 'linkmap_page_area_mask_input_pictogram',

  isReady: function() {
    return true;
  }
});

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
pageflow-linkmap-page-2.10.0 app/assets/javascript/pageflow/linkmap_page/editor/views/inputs/area_mask_input_view.js
pageflow-linkmap-page-2.9.0 app/assets/javascript/pageflow/linkmap_page/editor/views/inputs/area_mask_input_view.js
pageflow-linkmap-page-2.8.0 app/assets/javascript/pageflow/linkmap_page/editor/views/inputs/area_mask_input_view.js
pageflow-linkmap-page-2.7.1 app/assets/javascript/pageflow/linkmap_page/editor/views/inputs/area_mask_input_view.js
pageflow-linkmap-page-2.7.0 app/assets/javascript/pageflow/linkmap_page/editor/views/inputs/area_mask_input_view.js
pageflow-linkmap-page-2.6.1 app/assets/javascript/pageflow/linkmap_page/editor/views/inputs/area_mask_input_view.js
pageflow-linkmap-page-2.6.0 app/assets/javascript/pageflow/linkmap_page/editor/views/inputs/area_mask_input_view.js
pageflow-linkmap-page-2.5.0 app/assets/javascript/pageflow/linkmap_page/editor/views/inputs/area_mask_input_view.js
pageflow-linkmap-page-2.4.0 app/assets/javascript/pageflow/linkmap_page/editor/views/inputs/area_mask_input_view.js
pageflow-linkmap-page-2.3.0 app/assets/javascript/pageflow/linkmap_page/editor/views/inputs/area_mask_input_view.js
pageflow-linkmap-page-2.2.0 app/assets/javascript/pageflow/linkmap_page/editor/views/inputs/area_mask_input_view.js
pageflow-linkmap-page-1.5.0 app/assets/javascript/pageflow/linkmap_page/editor/views/inputs/area_mask_input_view.js
pageflow-linkmap-page-2.1.0 app/assets/javascript/pageflow/linkmap_page/editor/views/inputs/area_mask_input_view.js
pageflow-linkmap-page-1.4.0 app/assets/javascript/pageflow/linkmap_page/editor/views/inputs/area_mask_input_view.js
pageflow-linkmap-page-2.0.0 app/assets/javascript/pageflow/linkmap_page/editor/views/inputs/area_mask_input_view.js
pageflow-linkmap-page-1.3.0 app/assets/javascript/pageflow/linkmap_page/editor/views/inputs/area_mask_input_view.js
pageflow-linkmap-page-1.2.1 app/assets/javascript/pageflow/linkmap_page/editor/views/inputs/area_mask_input_view.js
pageflow-linkmap-page-1.2.0 app/assets/javascript/pageflow/linkmap_page/editor/views/inputs/area_mask_input_view.js
pageflow-linkmap-page-1.1.0 app/assets/javascript/pageflow/linkmap_page/editor/views/inputs/area_mask_input_view.js
pageflow-linkmap-page-1.0.0 app/assets/javascript/pageflow/linkmap_page/editor/views/inputs/area_mask_input_view.js