WordPress.org

Make WordPress Core

Changeset 22344


Ignore:
Timestamp:
10/31/2012 08:51:34 PM (8 years ago)
Author:
koopersmith
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-views.js

    r22342 r22344  
    11981198        }()),
    11991199
    1200         removeFromGallery: function() {
     1200        removeFromGallery: function( event ) {
     1201            // Stop propagation so the model isn't selected.
     1202            event.stopPropagation();
     1203
    12011204            this.controller.state().get('library').remove( this.model );
    12021205        }
Note: See TracChangeset for help on using the changeset viewer.