Ticket #6843: uploader.patch
File uploader.patch, 4.8 KB (added by , 16 years ago) |
---|
-
wp-admin/css/media.css
196 196 #media-upload .media-upload-form p { 197 197 margin: 0 1em 1em 0; 198 198 } 199 200 #media-upload .media-upload-form p.ml-submit { 201 padding: 1em 0; 202 } 203 199 204 #media-upload p.help { 200 205 font-style: italic; 201 206 font-weight: normal; … … 240 245 margin-bottom: 1em; 241 246 height: 3em; 242 247 } 248 249 #media-upload #filter { 250 width: 623px; 251 } 252 253 #media-upload #filter .subsubsub { 254 margin: 8px 0; 255 } 256 257 #filter .tablenav select { 258 border-style:solid; 259 border-width:1px; 260 padding:2px; 261 vertical-align:top; 262 } -
wp-admin/includes/media.php
960 960 <input type="submit" value="<?php echo attribute_escape( __( 'Search Media' ) ); ?>" class="button" /> 961 961 </div> 962 962 963 <p>964 963 <ul class="subsubsub"> 965 964 <?php 966 965 $type_links = array(); … … 992 991 unset($type_links); 993 992 ?> 994 993 </ul> 995 </p>996 994 997 995 <div class="tablenav"> 998 996 … … 1067 1065 <div id="media-items"> 1068 1066 <?php echo get_media_items(null, $errors); ?> 1069 1067 </div> 1068 <p class="ml-submit"> 1070 1069 <input type="submit" class="button savebutton" name="save" value="<?php echo attribute_escape( __( 'Save all changes' ) ); ?>" /> 1071 1070 <input type="hidden" name="post_id" id="post_id" value="<?php echo (int) $post_id; ?>" /> 1071 </p> 1072 1072 </form> 1073 1073 <?php 1074 1074 } -
wp-admin/js/media-upload.js
9 9 tinyMCE.execCommand('mceInsertContent', false, h); 10 10 } else 11 11 win.edInsertContent(win.edCanvas, h); 12 } 13 No newline at end of file 12 } 13 14 // thickbox settings 15 jQuery(function($) { 16 tb_position = function() { 17 var tbWindow = $('#TB_window'); 18 var width = $(window).width(); 19 var H = $(window).height(); 20 var W = ( 720 < width ) ? 720 : width; 21 22 if ( tbWindow.size() ) { 23 tbWindow.width( W - 50 ).height( H - 45 ); 24 $('#TB_iframeContent').width( W - 50 ).height( H - 75 ); 25 tbWindow.css({marginLeft: '-' + parseInt((( W - 50 ) / 2),10) + 'px'}); 26 }; 27 28 return $('a.thickbox').each( function() { 29 var href = $(this).attr('href'); 30 if ( ! href ) return; 31 href = href.replace(/&width=[0-9]+/g, ''); 32 href = href.replace(/&height=[0-9]+/g, ''); 33 $(this).attr( 'href', href + '&width=' + ( W - 80 ) + '&height=' + ( H - 85 ) ); 34 }); 35 }; 36 37 $(window).resize( function() { tb_position() } ); 38 $(document).ready( function() { tb_position() } ); 39 }); 40 -
wp-includes/js/swfupload/handlers.js
55 55 jQuery('#media-item-' + fileObj.id + ' .filename.original').replaceWith(jQuery('#media-item-' + fileObj.id + ' .filename.new')); 56 56 57 57 // Also bind toggle to the links 58 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;});58 jQuery('#media-item-' + fileObj.id + ' a.toggle').bind('click', function(){jQuery(this).siblings('.slidetoggle').slideToggle(150, function(){window.scrollTo(0,this.parentNode.offsetTop);});jQuery(this).parent().eq(0).children('.toggle').toggle();jQuery(this).siblings('a.toggle').focus();return false;}); 59 59 60 60 // Bind AJAX to the new Delete button 61 61 jQuery('#media-item-' + fileObj.id + ' a.delete').bind('click',function(){ -
wp-includes/js/thickbox/thickbox.css
45 45 46 46 #TB_window { 47 47 position: fixed; 48 background: #ffffff;49 48 z-index: 102; 50 49 color:#000000; 51 50 display:none; 52 border: 4px solid #525252;53 51 text-align:left; 54 top: 50%;52 top:20px; 55 53 left:50%; 56 54 } 57 55 58 56 * html #TB_window { /* ie6 hack */ 59 57 position: absolute; 60 margin-top: expression( 0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');58 margin-top: expression(20) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px'); 61 59 } 62 60 63 61 #TB_window img#TB_Image { … … 97 95 #TB_title{ 98 96 background-color:#e8e8e8; 99 97 height:27px; 98 border-width: 4px; 99 border-color: #525252; 100 border-style: solid solid none; 100 101 } 101 102 102 103 #TB_ajaxContent{