Sha256: 7a2a28550fa0a2ad5c3ff594ae8984260bc9dc9ea77f4fe95f4b2042816784d1
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 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 })); }, imageFiles: function(pageId, attributeName) { this.files(pageId, attributeName, 'image_files'); }, videoFiles: function(pageId, attributeName) { this.files(pageId, attributeName, 'video_files'); }, audioFiles: function(pageId, attributeName) { this.files(pageId, attributeName, 'audio_files'); }, files: function(pageId, attributeName, tabName) { this.region.show(new pageflow.FilesView({ model: this.entry, page: this.entry.pages.get(pageId), pageAttributeName: attributeName, tabName: tabName })); }, metaData: function() { this.region.show(new pageflow.EditMetaDataView({ model: this.entry })); }, publish: function() { this.region.show(pageflow.PublishEntryView.create({ model: this.entry })); }, chapter: function(id) { this.region.show(new pageflow.EditChapterView({ model: this.entry.chapters.get(id) })); }, page: function(id, tab) { this.region.show(new pageflow.EditPageView({ model: this.entry.pages.get(id), tab: tab })); } });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pageflow-0.1.0 | app/assets/javascripts/pageflow/editor/controllers/sidebar_controller.js |