Make WordPress Core

Changeset 22139


Ignore:
Timestamp:
10/09/2012 12:27:14 AM (14 years ago)
Author:
koopersmith
Message:

On second thought, we're going to need the library-specific attachment view. see #21390, [22138].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-views.js

    r22138 r22139  
    521521
    522522        /**
     523         * wp.media.view.Attachment.Library
     524         */
     525        media.view.Attachment.Library = media.view.Attachment.extend({
     526                className: 'attachment library'
     527        });
     528
     529        /**
    523530         * wp.media.view.Attachment.Gallery
    524531         */
    … …  
    631638        media.view.Workspace.Library = media.view.Workspace.extend({
    632639
     640                attachmentsView: {
     641                        // The single `Attachment` view to be used in the `Attachments` view.
     642                        AttachmentView: media.view.Attachment.Library
     643                },
     644
    633645                initialize: function() {
    634646                        media.view.Workspace.prototype.initialize.apply( this, arguments );
Note: See TracChangeset for help on using the changeset viewer.