Sha256: 55d7a362a0b83599978a8deab893e8237aea202924a000cb8a37c0e2d149e063
Contents?: true
Size: 929 Bytes
Versions: 67
Compression:
Stored size: 929 Bytes
Contents
pageflow.OtherEntriesCollectionView = Backbone.Marionette.View.extend({ initialize: function() { this.otherEntries = new pageflow.OtherEntriesCollection(); this.listenTo(this.otherEntries, 'sync', function() { if (this.otherEntries.length === 1) { this.options.selection.set('entry', this.otherEntries.first()); } }); }, render: function() { this.subview(new pageflow.CollectionView({ el: this.el, collection: this.otherEntries, itemViewConstructor: pageflow.OtherEntryItemView, itemViewOptions: { selection: this.options.selection }, blankSlateViewConstructor: Backbone.Marionette.ItemView.extend({ template: 'templates/other_entries_blank_slate', tagName: 'li', className: 'blank_slate' }), loadingViewConstructor: pageflow.LoadingView })); this.otherEntries.fetch(); return this; } });
Version data entries
67 entries across 67 versions & 1 rubygems