Changeset 24310
- Timestamp:
- 05/22/2013 01:30:00 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/post-formats.js
r24289 r24310 68 68 69 69 var uploader = { 70 container: null, 71 browser: null, 70 72 dropzone: $('.wp-format-media-holder[data-format=image]'), 71 73 success: imageFormatUploadSuccess, … … 78 80 }; 79 81 uploader = new wp.Uploader( uploader ); 80 uploader.uploader.bind( 'BeforeUpload', imageFormatUploadStart ); 81 uploader.uploader.bind( 'UploadProgress', imageFormatUploadProgress ); 82 uploader.uploader.bind( 'FilesAdded', imageFormatUploadFilesAdded ); 82 83 if ( uploader.supports.dragdrop ) { 84 uploader.uploader.bind( 'BeforeUpload', imageFormatUploadStart ); 85 uploader.uploader.bind( 'UploadProgress', imageFormatUploadProgress ); 86 uploader.uploader.bind( 'FilesAdded', imageFormatUploadFilesAdded ); 87 } else { 88 uploader.uploader.destroy(); 89 uploader = null; 90 } 83 91 84 92 function switchFormatClass( format ) {
Note: See TracChangeset
for help on using the changeset viewer.