WordPress.org

Make WordPress Core

Changeset 20580


Ignore:
Timestamp:
04/24/12 22:06:55 (2 years ago)
Author:
azaozz
Message:

Uploader: fix check for error message send from async-upload on failed uploads, improve styling it a bit, props trepmal, SergeyBiryukov, fixes #20445

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/wp-admin.dev.css

    r20573 r20580  
    36883688.media-item .error-div { 
    36893689    line-height: 16px; 
    3690     font-size: 12px; 
    3691     margin: 10px; 
     3690    margin: 5px 10px; 
    36923691    padding: 0; 
    36933692} 
    36943693 
    36953694.media-item .error-div a.dismiss { 
     3695    display: block; 
    36963696    float: right; 
    3697     padding-left: 15px; 
     3697    margin: 5px 4px 0 15px; 
    36983698} 
    36993699 
  • trunk/wp-includes/js/plupload/handlers.dev.js

    r20467 r20580  
    8484 
    8585    // if async-upload returned an error message, place it in the media item div and return 
    86     if ( serverData.match('media-upload-error') ) { 
     86    if ( serverData.match(/media-upload-error|error-div/) ) { 
    8787        item.html(serverData); 
    8888        return; 
Note: See TracChangeset for help on using the changeset viewer.