mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01: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:
parent
80cd7ad468
commit
9703b3a86f
@ -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 );
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user