Media JS: When editing a gallery, prevent attachments from being selected as they are removed. see #21390.

git-svn-id: http://core.svn.wordpress.org/trunk@22344 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Daryl Koopersmith 2012-10-31 20:51:34 +00:00
parent c419700f93
commit d16ba6ac18

View File

@ -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 );
}
});