Make WordPress Core


Ignore:
Timestamp:
10/29/2012 06:56:23 AM (12 years ago)
Author:
koopersmith
Message:

Add a sidebar to the media modal.

  • Adds wp.media.view.Sidebar, to aid in rendering the sidebar.
  • Removes the directions from the Attachments view and shifts search into a separate view (wp.mce.view.Search) that can be relocated at will. This also serves to simplify the Attachments view by removing the nested list and $list parameters.
  • Show the toolbar on the featured image workflow, effectively requiring confirmation before closing the dialog.

see #21390, #21776, #21808.

File:
1 edited

Legend:

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

    r22320 r22321  
    13101310    </script>
    13111311
    1312     <script type="text/html" id="tmpl-attachments">
    1313         <div class="attachments-header">
    1314             <h3><%- directions %></h3>
    1315             <input class="search" type="text" placeholder="<?php esc_attr_e('Search'); ?>" />
    1316         </div>
     1312    <script type="text/html" id="tmpl-sidebar">
     1313        <h2 class="sidebar-title"><%- title %></h2>
     1314        <div class="sidebar-content"></div>
    13171315    </script>
    13181316
Note: See TracChangeset for help on using the changeset viewer.