mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 21:30:26 +00:00
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:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user