Make WordPress Core

Changeset 22709


Ignore:
Timestamp:
11/20/2012 11:52:08 AM (12 years ago)
Author:
koopersmith
Message:

Media Uploader: Change an uploaded attachment's 'updating' key with the rest of the returned attributes to allow events bound to 'change:updating' to access the new properties. see #21390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/plupload/wp-plupload.js

    r22543 r22709  
    195195                return error( response.data.message, response.data, file );
    196196
    197             _.each(['file','loaded','size','uploading','percent'], function( key ) {
     197            _.each(['file','loaded','size','percent'], function( key ) {
    198198                file.attachment.unset( key );
    199199            });
    200200
    201             file.attachment.set( response.data );
     201            file.attachment.set( _.extend( response.data, { uploading: false }) );
    202202            wp.media.model.Attachment.get( response.data.id, file.attachment );
    203203
Note: See TracChangeset for help on using the changeset viewer.