mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Media JS: When editing a gallery, prevent attachments from being selected as they are removed. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22344 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1197,7 +1197,10 @@
|
||||
return events;
|
||||
}()),
|
||||
|
||||
removeFromGallery: function() {
|
||||
removeFromGallery: function( event ) {
|
||||
// Stop propagation so the model isn't selected.
|
||||
event.stopPropagation();
|
||||
|
||||
this.controller.state().get('library').remove( this.model );
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user