Sha256: aa9b31ecd4ab041c47c7cb4d11ccecf2d2c06052af8dd7a95e38b225153a5f14

Contents?: true

Size: 729 Bytes

Versions: 5

Compression:

Stored size: 729 Bytes

Contents

pageflow.react.registerPageTypeWithDefaultBackground('internal_links_grid', _.extend({
  prepareNextPageTimeout: 0,

  enhance: function(pageElement, configuration) {
    pageElement.on('click', 'nav .thumbnail', function() {
      pageflow.slides.goToByPermaId($(this).data('page'), {
        transition: $(this).data('pageTransition')
      });
      return false;
    });
  },

  update: function(pageElement, configuration) {
    this.updateDefaultPageContent(pageElement, configuration);

    pageElement.find('.shadow').css({
      opacity: configuration.get('gradient_opacity') / 100
    });

    pageElement.find('nav').attr('data-layout', configuration.get('linked_pages_layout'));
  }
}, pageflow.defaultPageContent));

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pageflow-internal-links-1.6.0 app/assets/javascripts/pageflow/internal_links/grid_page_type.js
pageflow-internal-links-1.5.0 app/assets/javascripts/pageflow/internal_links/grid_page_type.js
pageflow-internal-links-1.4.0 app/assets/javascripts/pageflow/internal_links/grid_page_type.js
pageflow-internal-links-1.3.0 app/assets/javascripts/pageflow/internal_links/grid_page_type.js
pageflow-internal-links-1.2.0 app/assets/javascripts/pageflow/internal_links/grid_page_type.js