Ticket #6443: fileuploaderfix.patch

File fileuploaderfix.patch, 1.3 kB (added by tsimmons, 2 months ago)

diff for patch

  • wp-admin/includes/media.php

    old new  
    814814                        file_queue_error_handler : fileQueueError, 
    815815                        file_dialog_complete_handler : fileDialogComplete, 
    816816 
    817                         debug: false, 
     817                        debug: false 
    818818                }); 
    819819        $("#flash-browse-button").bind( "click", function(){swfu.selectFiles();}); 
    820820}); 
  • wp-includes/js/swfupload/handlers.js

    old new  
    9696        jQuery('#media-item-' + this.id + ' .filename').append(' <span class="file-error">'+swfuploadL10n.deleted+'</span>').siblings('a.toggle').remove(); 
    9797        jQuery('#media-item-' + this.id).children('.describe').css({backgroundColor:'#fff'}).end() 
    9898                        .animate({backgroundColor:'#ffc0c0'}, {queue:false,duration:50}) 
    99                         .animate({minHeight:0,height:36,}, 400, null, function(){jQuery(this).children('.describe').remove()}) 
     99                        .animate({minHeight:0,height:36}, 400, null, function(){jQuery(this).children('.describe').remove()}) 
    100100                        .animate({backgroundColor:'#fff'}, 400) 
    101101                        .animate({height:0}, 800, null, function(){jQuery(this).remove();updateMediaForm();}); 
    102102