Changeset 24236
- Timestamp:
- 05/10/2013 06:49:05 PM (12 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/wp-admin.css
r24226 r24236 4062 4062 display: none; 4063 4063 } 4064 4064 4065 .wp-format-media-holder.drag-over div { 4065 4066 position: absolute; … … 4073 4074 4074 4075 #poststuff .wp-format-media-holder.drag-over div h3 { 4075 4076 4076 position: absolute; 4077 4077 top: 50%; … … 4112 4112 } 4113 4113 4114 body.wp-format-image .attachment-display-settings { 4115 display: none; 4116 } 4117 4114 body.wp-format-image .attachment-display-settings, 4118 4115 body.wp-format-status #titlewrap, 4119 4116 body.wp-format-image .wp-media-buttons .insert-media, … … 4125 4122 } 4126 4123 4124 .wp-format-media-select .media-progress-bar, 4125 .wp-format-media-select .media-progress-bar div, 4127 4126 .mejs-audio audio, 4128 4127 .mejs-video video { -
trunk/wp-admin/js/post-formats.js
r24226 r24236 60 60 } 61 61 62 function imageFormatUploadFilesAdded( uploader, files ) { 63 $.each( files, function( i, file ) { 64 if ( i > 0 ) 65 uploader.removeFile(file); 66 }); 67 } 68 62 69 var uploader = { 63 70 dropzone: $('.wp-format-media-holder[data-format=image]'), 64 71 success: imageFormatUploadSuccess, 65 error: imageFormatUploadError, 66 plupload: {}, 72 error: imageFormatUploadError, 73 plupload: { 74 runtimes: 'html5', 75 filters: [ {title: 'Image', extensions: 'jpg,jpeg,gif,png'} ] 76 }, 67 77 params: {} 68 78 }; … … 70 80 uploader.uploader.bind( 'BeforeUpload', imageFormatUploadStart ); 71 81 uploader.uploader.bind( 'UploadProgress', imageFormatUploadProgress ); 82 uploader.uploader.bind( 'FilesAdded', imageFormatUploadFilesAdded ); 72 83 73 84 function switchFormatClass( format ) {
Note: See TracChangeset
for help on using the changeset viewer.