mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 15:31:42 +01:00
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.
git-svn-id: http://core.svn.wordpress.org/trunk@22709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
31c525b289
commit
fd78be75d9
@ -194,11 +194,11 @@ window.wp = window.wp || {};
|
||||
else if ( ! response.success )
|
||||
return error( response.data.message, response.data, file );
|
||||
|
||||
_.each(['file','loaded','size','uploading','percent'], function( key ) {
|
||||
_.each(['file','loaded','size','percent'], function( key ) {
|
||||
file.attachment.unset( key );
|
||||
});
|
||||
|
||||
file.attachment.set( response.data );
|
||||
file.attachment.set( _.extend( response.data, { uploading: false }) );
|
||||
wp.media.model.Attachment.get( response.data.id, file.attachment );
|
||||
|
||||
complete = Uploader.queue.all( function( attachment ) {
|
||||
|
Loading…
Reference in New Issue
Block a user