Remove the attachment quick-insert button from the media modal. see #21390.

git-svn-id: https://develop.svn.wordpress.org/trunk@22138 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith
2012-10-09 00:21:52 +00:00
parent 91a3c62b3f
commit b26a4d2cde
2 changed files with 0 additions and 29 deletions
-25
View File
@@ -519,26 +519,6 @@
}
});
/**
* wp.media.view.Attachment.Library
*/
media.view.Attachment.Library = media.view.Attachment.extend({
className: 'attachment library',
buttons: {
insert: true
},
events: _.defaults({
'click .insert': 'insert'
}, media.view.Attachment.prototype.events ),
insert: function() {
this.controller.selection.reset([ this.model ]);
this.controller.update();
}
});
/**
* wp.media.view.Attachment.Gallery
*/
@@ -650,11 +630,6 @@
*/
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() {
media.view.Workspace.prototype.initialize.apply( this, arguments );