Ticket #6661: media-library-ie6-overlap-r7641-2.patch
| File media-library-ie6-overlap-r7641-2.patch, 5.1 KB (added by , 19 years ago) |
|---|
-
wp-includes/js/swfupload/handlers.js
12 12 jQuery('.slidetoggle').slideUp(200).siblings().removeClass('hidden'); 13 13 } 14 14 // Create a progress bar containing the filename 15 jQuery('#media-items').append('<div id="media-item-' + fileObj.id + '" class="media-item child-of-' + post_id + '"><div class="filename original">' + fileObj.name + '</div><div class="progress"><div class="bar"></div></div></div>'); 15 jQuery('#media-items').append('<div id="media-item-' + fileObj.id + '" class="media-item child-of-' + post_id + '"><div class="progress"><div class="bar"></div></div><div class="filename original">' + fileObj.name + '</div></div>'); 16 // Display the progress div 17 jQuery('#media-item-' + fileObj.id + ' .progress').show(); 16 18 17 19 // Disable the submit button 18 20 jQuery('#insert-gallery').attr('disabled', 'disabled'); … … 31 33 function prepareMediaItem(fileObj, serverData) { 32 34 // Move the progress bar to 100% 33 35 jQuery('#media-item-' + fileObj.id + ' .bar').remove(); 36 jQuery('#media-item-' + fileObj.id + ' .progress').hide(); 34 37 35 38 // Append the HTML returned by the server -- thumbnail and form inputs 36 39 jQuery('#media-item-' + fileObj.id).append(serverData); … … 41 44 // Replace the original filename with the new (unique) one assigned during upload 42 45 jQuery('#media-item-' + fileObj.id + ' .filename.original').replaceWith(jQuery('#media-item-' + fileObj.id + ' .filename.new')); 43 46 44 // Bind toggle function to a new mask over the progress bar area45 jQuery('#media-item-' + fileObj.id + ' .progress').clone().empty().addClass('clickmask').bind('click', function(){jQuery(this).siblings('.slidetoggle').slideToggle(150);jQuery(this).siblings('.toggle').toggle();}).appendTo('#media-item-' + fileObj.id);46 47 47 // Also bind toggle to the links 48 48 jQuery('#media-item-' + fileObj.id + ' a.toggle').bind('click', function(){jQuery(this).siblings('.slidetoggle').slideToggle(150);jQuery(this).parent().eq(0).children('.toggle').toggle();jQuery(this).siblings('a.toggle').focus();return false;}); 49 49 -
wp-admin/includes/media.php
590 590 } 591 591 592 592 function get_media_items( $post_id, $errors ) { 593 if ( $post_id && $post = get_post($post_id) ) { 594 if ( $post->post_type == 'attachment' ) 593 if ( $post_id ) { 594 $post = get_post($post_id); 595 if ( $post && $post->post_type == 'attachment' ) 595 596 $attachments = array($post->ID => $post); 596 597 else 597 598 $attachments = get_children("post_parent=$post_id&post_type=attachment&orderby=menu_order ASC, ID&order=DESC"); … … 606 607 607 608 foreach ( $attachments as $id => $attachment ) 608 609 if ( $item = get_media_item( $id, array( 'errors' => isset($errors[$id]) ? $errors[$id] : null) ) ) 609 $output .= "\n<div id='media-item-$id' class='media-item child-of-$attachment->post_parent preloaded'><div id='media-upload-error-$id'></div><div class='filename'></div><div class='progress'><div class='bar'></div></div>$item<div class='progress clickmask'></div>\n</div>";610 $output .= "\n<div id='media-item-$id' class='media-item child-of-$attachment->post_parent preloaded'><div class='progress'><div class='bar'></div></div><div id='media-upload-error-$id'></div><div class='filename'></div>$item\n</div>"; 610 611 611 612 return $output; 612 613 } -
wp-admin/css/media.css
92 92 } 93 93 94 94 .filename.original { 95 z-index: 10; 96 position: absolute; 95 float: left; 97 96 } 98 97 .crunching { 99 98 display: block; … … 125 124 border-right-width: 3px; 126 125 border-right-style: solid; 127 126 } 127 128 #library-form .progress, #gallery-form .progress { 129 display: none; 130 } 131 128 132 .media-item .thumbnail { 129 133 max-width: 128px; 130 134 max-height: 128px; 131 135 } 132 136 .media-item .pinkynail { 133 position: absolute; 134 top: 2px; 135 left: 2px; 137 float: left; 138 margin: 2px; 136 139 height: 32px; 137 140 max-width: 40px; 138 141 } … … 171 174 .describe-toggle-on, .describe-toggle-off { 172 175 display: block; 173 176 line-height: 36px; 174 z-index: 2; 175 position: absolute; 176 top: 0px; 177 right: 20px; 177 float: right; 178 margin-right: 20px; 178 179 } 179 180 .describe-toggle-off { 180 181 display: none; 181 182 } 183 182 184 .clickmask { 183 background: transparent;184 position: absolute;185 top: 0px;186 left: 0px;187 cursor: pointer;188 border: none;189 z-index: 3;190 height: 36px;191 185 } 192 186 193 187 .hidden { … … 217 211 } 218 212 219 213 #media-upload .media-item { 214 position: relative; 220 215 border-bottom-width: 1px; 221 216 border-bottom-style: solid; 222 width: 623px;223 position: relative;224 217 min-height: 36px; 218 width: 100%; 225 219 } 226 220 .filename { 227 display: block;228 221 line-height: 36px; 229 margin-left: 50px;230 z-index: 2;222 margin-left: 10px; 223 float: left; 231 224 } 232 225 #media-upload .describe { 233 226 border-top-width: 1px; … … 246 239 #media-upload tr.image-size { 247 240 margin-bottom: 1em; 248 241 height: 3em; 249 } 250 No newline at end of file 242 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)