Sha256: aec6f7044b37337e565152df1361cb88e4deb015e8072cb946c97784d11a5487
Contents?: true
Size: 1.08 KB
Versions: 64
Compression:
Stored size: 1.08 KB
Contents
pageflow.StorylineOutlineView = Backbone.Marionette.Layout.extend({ template: 'templates/storyline_outline', className: 'storyline_outline', ui: { chapters: 'ul.storyline_outline_chapters' }, events: { 'click a.add_chapter': function() { this.model.scaffoldChapter(); } }, onRender: function() { this.ui.chapters.toggleClass('outline navigatable', !!this.options.navigatable); var collectionView = this.options.sortable ? pageflow.SortableCollectionView : pageflow.CollectionView; new collectionView({ el: this.ui.chapters, collection: this.model.chapters, itemViewConstructor: this.options.navigatable ? pageflow.NavigatableChapterItemView : pageflow.ChapterItemView, itemViewOptions: { sortable: this.options.sortable, pageItemView: this.options.navigatable ? pageflow.NavigatablePageItemView : pageflow.PageItemView, pageItemViewOptions: _.extend({ displayInNavigationHint: this.options.displayInNavigationHint }, this.options.pageItemViewOptions || {}) } }).render(); } });
Version data entries
64 entries across 64 versions & 1 rubygems