On second thought, we're going to need the library-specific attachment view. see #21390, [22138].
git-svn-id: http://core.svn.wordpress.org/trunk@22139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
108b0feaed
commit
6312e4af27
|
@ -519,6 +519,13 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* wp.media.view.Attachment.Library
|
||||||
|
*/
|
||||||
|
media.view.Attachment.Library = media.view.Attachment.extend({
|
||||||
|
className: 'attachment library'
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* wp.media.view.Attachment.Gallery
|
* wp.media.view.Attachment.Gallery
|
||||||
*/
|
*/
|
||||||
|
@ -630,6 +637,11 @@
|
||||||
*/
|
*/
|
||||||
media.view.Workspace.Library = media.view.Workspace.extend({
|
media.view.Workspace.Library = media.view.Workspace.extend({
|
||||||
|
|
||||||
|
attachmentsView: {
|
||||||
|
// The single `Attachment` view to be used in the `Attachments` view.
|
||||||
|
AttachmentView: media.view.Attachment.Library
|
||||||
|
},
|
||||||
|
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
media.view.Workspace.prototype.initialize.apply( this, arguments );
|
media.view.Workspace.prototype.initialize.apply( this, arguments );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue