Ticket #6979: swfupload_show_timing.diff
File swfupload_show_timing.diff, 1.4 KB (added by , 16 years ago) |
---|
-
wp-includes/js/swfupload/handlers.js
206 206 } 207 207 208 208 function swfuploadPreLoad() { 209 var swfupload_element = jQuery('#'+swfu.customSettings.swfupload_element_id).get(0); 209 210 jQuery('#' + swfu.customSettings.degraded_element_id).hide(); 210 jQuery('#' + swfu.customSettings.swfupload_element_id).show(); 211 // Doing this directly because jQuery().show() seems to have timing problems 212 if ( swfupload_element && ! swfupload_element.style.display ) 213 swfupload_element.style.display = 'block'; 211 214 } 212 215 213 216 function swfuploadLoadFailed() { -
wp-admin/includes/media.php
1218 1218 <?php if ( $flash ) : ?> 1219 1219 <script type="text/javascript"> 1220 1220 <!-- 1221 jQuery(function($){1221 SWFUpload.onload = function() { 1222 1222 swfu = new SWFUpload({ 1223 1223 button_text: '<span class="button"><?php _e('Upload'); ?></span>', 1224 1224 button_text_style: '.button { text-align: center; font-weight: bold; font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana,sans-serif; }', … … 1256 1256 }, 1257 1257 debug: false 1258 1258 }); 1259 } );1259 }; 1260 1260 //--> 1261 1261 </script> 1262 1262