Sha256: 6ad93a2ddc99ba7c3b65a2455f72faa234e7680c6bde4b45f957a6e73f49683a

Contents?: true

Size: 613 Bytes

Versions: 4

Compression:

Stored size: 613 Bytes

Contents

pageflow.externalLinks.ListEmbeddedView = Backbone.Marionette.View.extend({
  render: function() {
    this.subview(new pageflow.CollectionView({
      el: this.$el.find('div'),
      collection: this.model.externalSiteReferences(),
      itemViewConstructor: pageflow.externalLinks.ListItemEmbeddedView
    }));

    this.listenTo(this.model.externalSiteReferences(), 'add remove', function() {
      this.refreshScroller();
    });

    this.refreshScroller();

    return this;
  },

  refreshScroller: function() {
    this.$el.data('scroller').refresh();
    this.$el.data('scroller').checkDisable();
  }
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pageflow-external-links-0.3.0 app/assets/javascripts/pageflow/external_links/editor/views/embedded/list_embedded_view.js
pageflow-external-links-0.2.0 app/assets/javascripts/pageflow/external_links/editor/views/embedded/list_embedded_view.js
pageflow-external-links-0.1.0 app/assets/javascript/pageflow/external_links/editor/views/embedded/list_embedded_view.js
pageflow-external-links-0.0.1 app/assets/javascript/pageflow/external_links/editor/views/embedded/list_embedded_view.js