WordPress.org

Make WordPress Core

Changeset 22176


Ignore:
Timestamp:
10/11/2012 12:36:42 AM (9 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.

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r22173 r22176  
    443443    margin: 10px auto;
    444444    padding: 2px;
    445     border: 2px solid #dfdfdf;
     445    border: 2px solid #ccc;
    446446    border-radius: 8px;
     447    background: #fff;
    447448}
    448449
     
    451452    min-width: 8px;
    452453    width: 0;
    453     background: #dfdfdf;
     454    background: #ccc;
    454455    border-radius: 10px;
    455456    -webkit-transition: width 200ms;
  • 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.