Make WordPress Core


Ignore:
Timestamp:
10/11/2012 12:36:42 AM (13 years ago)
Author:
koopersmith
Message:

Media Modal: Show progress bars for uploading images, and adjust progress bar styles to compensate for the darker attachment background. see #21390.

File:
1 edited

Legend:

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

    r22173 r22176  
    13301330    <script type="text/html" id="tmpl-attachment">
    13311331        <div class="attachment-preview type-<%- type %> subtype-<%- subtype %> <%- orientation %>">
    1332             <% if ( 'image' === type ) { %>
     1332            <% if ( uploading ) { %>
     1333                <div class="media-progress-bar"><div></div></div>
     1334            <% } else if ( 'image' === type ) { %>
    13331335                <div class="thumbnail">
    13341336                    <img src="<%- url %>" width="<%- width %>" height="<%- height %>" draggable="false"
    13351337                    style="top:<%- top %>px; left:<%- left %>px;" />
    13361338                </div>
    1337             <% } else if ( uploading ) { %>
    1338                 <div class="media-progress-bar"><div></div></div>
    13391339            <% } else { %>
    13401340                <img src="<%- icon %>" class="icon" draggable="false" />
Note: See TracChangeset for help on using the changeset viewer.