Make WordPress Core


Ignore:
Timestamp:
07/17/2014 08:41:40 PM (11 years ago)
Author:
helen
Message:

Media Grid:

Instead of a separate bulk selection mode, persistently show a checkbox for each item. Restores the more familiar bulk actions dropdown + action button.

props ericlewis. see #28842.

File:
1 edited

Legend:

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

    r29208 r29212  
    398398
    399399    <script type="text/html" id="tmpl-attachment">
    400         <# if ( _.contains( data.controller.options.mode, 'grid' ) ) { #>
    401         <div class="inline-toolbar js--select-attachment">
    402             <div class="dashicons dashicons-edit edit edit-media"></div>
    403         </div>
    404         <# } #>
    405400        <div class="attachment-preview js--select-attachment type-{{ data.type }} subtype-{{ data.subtype }} {{ data.orientation }}">
    406401            <# if ( data.uploading ) { #>
     
    425420                <a class="close media-modal-icon" href="#" title="<?php esc_attr_e('Remove'); ?>"></a>
    426421            <# } #>
    427 
    428             <# if ( data.buttons.check ) { #>
    429                 <a class="check" href="#" title="<?php esc_attr_e('Deselect'); ?>" tabindex="-1"><div class="media-modal-icon"></div></a>
    430             <# } #>
    431         </div>
     422        </div>
     423        <# if ( _.contains( data.controller.options.mode, 'grid' ) ) { #>
     424        <div class="inline-toolbar js--select-attachment">
     425            <div class="dashicons dashicons-edit edit edit-media"></div>
     426        </div>
     427        <# } #>
     428        <# if ( data.buttons.check ) { #>
     429            <a class="check" href="#" title="<?php esc_attr_e('Deselect'); ?>" tabindex="-1"><div class="media-modal-icon"></div></a>
     430        <# } #>
    432431        <#
    433432        var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly';
Note: See TracChangeset for help on using the changeset viewer.