Changeset 7676
- Timestamp:
- 04/14/2008 08:47:51 PM (18 years ago)
- Location:
- branches/2.5
- Files:
-
- 3 edited
-
wp-admin/css/media.css (modified) (5 diffs)
-
wp-admin/includes/media.php (modified) (1 diff)
-
wp-includes/js/swfupload/handlers.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/wp-admin/css/media.css
r7653 r7676 93 93 94 94 .filename.original { 95 z-index: 10; 96 position: absolute; 95 float: left; 97 96 } 98 97 .crunching { … … 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; … … 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; … … 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 … … 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 { -
branches/2.5/wp-admin/includes/media.php
r7672 r7676 608 608 foreach ( $attachments as $id => $attachment ) 609 609 if ( $item = get_media_item( $id, array( 'errors' => isset($errors[$id]) ? $errors[$id] : null) ) ) 610 $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>"; 611 611 612 612 return $output; -
branches/2.5/wp-includes/js/swfupload/handlers.js
r7585 r7676 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 … … 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 … … 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 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 46 47 47 // Also bind toggle to the links
Note: See TracChangeset
for help on using the changeset viewer.