Sha256: 4646c39db0545f5bd723774e391708d9f865225d633903888583b797bb70cf75
Contents?: true
Size: 1.66 KB
Versions: 9
Compression:
Stored size: 1.66 KB
Contents
pageflow.SidebarController = Backbone.Marionette.Controller.extend({ initialize: function(options) { this.region = options.region; this.entry = options.entry; }, index: function() { this.region.show(new pageflow.EditEntryView({ model: this.entry })); }, files: function(collectionName, handler, payload) { this.region.show(new pageflow.FilesView({ model: this.entry, selectionHandler: handler && pageflow.editor.createFileSelectionHandler(handler, payload), tabName: collectionName })); pageflow.editor.setDefaultHelpEntry('pageflow.help_entries.files'); }, confirmableFiles: function(preselectedFileType, preselectedFileId) { this.region.show(pageflow.ConfirmEncodingView.create({ model: pageflow.EncodingConfirmation.createWithPreselection({ fileType: preselectedFileType, fileId: preselectedFileId }) })); }, metaData: function(tab) { this.region.show(new pageflow.EditMetaDataView({ model: this.entry, tab: tab })); }, publish: function() { this.region.show(pageflow.PublishEntryView.create({ model: this.entry, entryPublication: new pageflow.EntryPublication() })); pageflow.editor.setDefaultHelpEntry('pageflow.help_entries.publish'); }, chapter: function(id) { this.region.show(new pageflow.EditChapterView({ model: this.entry.chapters.get(id) })); }, page: function(id, tab) { var page = this.entry.pages.get(id); this.region.show(new pageflow.EditPageView({ model: page, tab: tab })); pageflow.editor.setDefaultHelpEntry(page.pageType().help_entry_translation_key); } });
Version data entries
9 entries across 9 versions & 1 rubygems