Ticket #24291: 24291.28.diff
File 24291.28.diff, 2.0 KB (added by , 12 years ago) |
---|
-
wp-admin/css/wp-admin.css
4061 4061 .wp-format-media-holder div { 4062 4062 display: none; 4063 4063 } 4064 4064 4065 .wp-format-media-holder.drag-over div { 4065 4066 position: absolute; 4066 4067 top: 10px; … … 4072 4073 } 4073 4074 4074 4075 #poststuff .wp-format-media-holder.drag-over div h3 { 4075 4076 4076 position: absolute; 4077 4077 top: 50%; 4078 4078 left: 0; … … 4111 4111 text-align: center; 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, 4120 4117 body.wp-format-audio .wp-media-buttons .insert-media, … … 4124 4121 display: none; 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 { 4129 4128 display: block; -
wp-admin/js/post-formats.js
59 59 '</div>'].join( '' ) ); 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 }; 69 79 uploader = new wp.Uploader( uploader ); 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 ) { 74 85 formatField.val( format );