Make WordPress Core

Ticket #6979: swfupload_show_timing.diff

File swfupload_show_timing.diff, 1.4 KB (added by filosofo, 15 years ago)
  • wp-includes/js/swfupload/handlers.js

     
    206206}
    207207
    208208function swfuploadPreLoad() {
     209        var swfupload_element = jQuery('#'+swfu.customSettings.swfupload_element_id).get(0);
    209210        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';
    211214}
    212215
    213216function swfuploadLoadFailed() {
  • wp-admin/includes/media.php

     
    12181218<?php if ( $flash ) : ?>
    12191219<script type="text/javascript">
    12201220<!--
    1221 jQuery(function($){
     1221SWFUpload.onload = function() {
    12221222        swfu = new SWFUpload({
    12231223                        button_text: '<span class="button"><?php _e('Upload'); ?></span>',
    12241224                        button_text_style: '.button { text-align: center; font-weight: bold; font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana,sans-serif; }',
     
    12561256                        },
    12571257                        debug: false
    12581258                });
    1259 });
     1259};
    12601260//-->
    12611261</script>
    12621262