Make WordPress Core


Ignore:
Timestamp:
07/10/2014 03:55:21 PM (10 years ago)
Author:
wonderboymusic
Message:

Media Grid: make the edit attachment icon clickable.

Props ericlewis.
See #24716.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media-template.php

    r29056 r29065  
    387387    <script type="text/html" id="tmpl-attachment">
    388388        <# if ( _.contains( data.controller.options.mode, 'grid' ) ) { #>
    389         <div class="inline-toolbar">
     389        <div class="inline-toolbar js--select-attachment">
    390390            <div class="dashicons dashicons-edit edit edit-media"></div>
    391391        </div>
    392392        <# } #>
    393         <div class="attachment-preview type-{{ data.type }} subtype-{{ data.subtype }} {{ data.orientation }}">
     393        <div class="attachment-preview js--select-attachment type-{{ data.type }} subtype-{{ data.subtype }} {{ data.orientation }}">
    394394            <# if ( data.uploading ) { #>
    395395                <div class="media-progress-bar"><div></div></div>
Note: See TracChangeset for help on using the changeset viewer.