Sha256: 4485c22250c3f542866664a55112513316f5657dfb3046f160e9f93e10af9282
Contents?: true
Size: 1.17 KB
Versions: 8
Compression:
Stored size: 1.17 KB
Contents
pageflow.EditEntryView = Backbone.Marionette.ItemView.extend({ template: 'templates/edit_entry', mixins: [pageflow.failureIndicatingView], ui: { publicationStateButton: 'a.publication_state' }, events: { 'click a.close': function() { $.when(pageflow.editLock.release()).then(function() { window.location = '/admin/entries/' + pageflow.entry.id; }); }, 'click a.publish': function() { editor.navigate('/publish', {trigger: true}); return false; }, 'click a.edit_entry_meta_data': function() { editor.navigate('/meta_data', {trigger: true}); return false; }, 'click a.manage_files': function() { editor.navigate('/files', {trigger: true}); return false; }, 'click a.add_chapter': function() { this.model.addChapter(); } }, onRender: function() { this.subview(new pageflow.SortableCollectionView({ el: this.$('ul.chapters'), collection: this.model.chapters, itemViewConstructor: pageflow.NavigatableChapterItemView, itemViewOptions: { pageItemViewOptions: { displayInNavigationHint: true } } })); } });
Version data entries
8 entries across 8 versions & 1 rubygems