Sha256: 487389de58b5b17100b11d123dda2858b655c98d31b06e94c73d0628264c85ec
Contents?: true
Size: 852 Bytes
Versions: 79
Compression:
Stored size: 852 Bytes
Contents
pageflow.EntryPublication = Backbone.Model.extend({ paramRoot: 'entry_publication', quota: function() { return new Backbone.Model(this.get('quota') || {}); }, check: function() { var model = this; this.set('checking', true); this.save({}, { url: this.url() + '/check', success: function() { model.set('checking', false); }, error: function() { model.set('checking', false); } }); }, publish: function(attributes) { var model = this; return this.save(attributes, { success: function(model) { pageflow.entry.parse(model.get('entry')); }, error: function(model, xhr) { model.set(xhr.responseJSON); } }); }, url: function() { return '/editor/entries/' + pageflow.entry.get('id') + '/entry_publications'; } });
Version data entries
79 entries across 79 versions & 1 rubygems