Changeset 21656
- Timestamp:
- 08/29/2012 07:56:42 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/plupload/wp-plupload.js
r21630 r21656 131 131 } 132 132 133 this.uploader.bind( 'UploadProgress', this.progress ); 133 this.uploader.bind( 'UploadProgress', function( up, file ) { 134 self.progress( file ); 135 }); 134 136 135 137 this.uploader.bind( 'FileUploaded', function( up, file, response ) { … … 144 146 145 147 if ( 'error' === response.type ) 146 return self.error( response.data.message, response.data );148 return self.error( response.data.message, response.data, file ); 147 149 148 150 if ( 'success' === response.type ) 149 return self.success( response.data );151 return self.success( response.data, file ); 150 152 151 153 }); … … 163 165 } 164 166 165 self.error( message, error );167 self.error( message, error, error.file ); 166 168 up.refresh(); 167 169 });
Note: See TracChangeset
for help on using the changeset viewer.