Sha256: bca4f6349a48868b908bd4b7db2e9e3d646876f2441246e3962fbfd0987d6fa3
Contents?: true
Size: 626 Bytes
Versions: 58
Compression:
Stored size: 626 Bytes
Contents
pageflow.FileReuse = Backbone.Model.extend({ modelName: 'file_reuse', paramRoot: 'file_reuse', initialize: function(attributes, options) { this.entry = options.entry; this.collectionName = options.fileType.collectionName; }, url: function() { return '/editor/entries/' + this.entry.get('id') + '/files/' + this.collectionName + '/reuse'; } }); pageflow.FileReuse.submit = function(otherEntry, file, options) { new pageflow.FileReuse({ other_entry_id: otherEntry.get('id'), file_id: file.get('id') }, { entry: options.entry, fileType: file.fileType() }).save(null, options); };
Version data entries
58 entries across 58 versions & 1 rubygems