Changeset 22045
- Timestamp:
- 09/27/2012 06:39:12 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/media-views.js
r22044 r22045 375 375 template: media.template('media-workspace'), 376 376 377 // The single `Attachment` view to be used in the `Attachments` view. 378 AttachmentView: media.view.Attachment, 379 377 380 events: { 378 381 'dragenter': 'maybeInitUploader', … … 393 396 controller: this.controller, 394 397 directions: this.controller.get('multiple') ? l10n.selectMediaMultiple : l10n.selectMediaSingular, 395 collection: this.collection 398 collection: this.collection, 399 400 AttachmentView: this.AttachmentView 396 401 }); 397 402 … … 452 457 */ 453 458 media.view.Workspace.Library = media.view.Workspace.extend({ 459 // The single `Attachment` view to be used in the `Attachments` view. 460 // AttachmentView: media.view.Attachment.Library, 461 454 462 initialize: function() { 455 463 media.view.Workspace.prototype.initialize.apply( this, arguments ); … … 522 530 */ 523 531 media.view.Workspace.Gallery = media.view.Workspace.extend({ 532 // The single `Attachment` view to be used in the `Attachments` view. 533 // AttachmentView: media.view.Attachment.Gallery, 534 524 535 initialize: function() { 525 536 media.view.Workspace.prototype.initialize.apply( this, arguments ); … … 582 593 _.defaults( this.options, { 583 594 refreshSensitivity: 200, 584 refreshThreshold: 3 595 refreshThreshold: 3, 596 AttachmentView: media.view.Attachment 585 597 }); 586 598 … … 620 632 // the list in a single DOM operation. 621 633 this.$list.html( this.collection.map( function( attachment ) { 622 return new media.view.Attachment({634 return new this.options.AttachmentView({ 623 635 controller: this.controller, 624 636 model: attachment
Note: See TracChangeset
for help on using the changeset viewer.