WordPress.org

Make WordPress Core

Changeset 40874


Ignore:
Timestamp:
06/05/17 00:48:19 (5 months ago)
Author:
adamsilverstein
Message:

Media: Fix an issue selecting media when clicking item edges.

Adjust targeting of the click handler for media item selection so clicking edges of media items properly selects them.

Props circlecube, psiico.
Fixes #40578.

Location:
trunk/src/wp-includes/js
Files:
2 edited

Legend:

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

    r40772 r40874  
    26982698 
    26992699    events: { 
    2700         'click .js--select-attachment':   'toggleSelectionHandler', 
     2700        'click':                          'toggleSelectionHandler', 
    27012701        'change [data-setting]':          'updateSetting', 
    27022702        'change [data-setting] input':    'updateSetting', 
  • trunk/src/wp-includes/js/media/views/attachment.js

    r33337 r40874  
    2727 
    2828    events: { 
    29         'click .js--select-attachment':   'toggleSelectionHandler', 
     29        'click':                          'toggleSelectionHandler', 
    3030        'change [data-setting]':          'updateSetting', 
    3131        'change [data-setting] input':    'updateSetting', 
Note: See TracChangeset for help on using the changeset viewer.