diff --git a/wp-includes/js/swfupload/handlers.js b/wp-includes/js/swfupload/handlers.js index 812567c5ae..add138436c 100644 --- a/wp-includes/js/swfupload/handlers.js +++ b/wp-includes/js/swfupload/handlers.js @@ -28,6 +28,9 @@ function uploadStart(fileObj) { return true; } function uploadProgress(fileObj, bytesDone, bytesTotal) { // Lengthen the progress bar jQuery('#media-item-' + fileObj.id + ' .bar').width(620*bytesDone/bytesTotal); + + if ( bytesDone== bytesTotal ) + jQuery('#media-item-' + fileObj.id + ' .bar').html('Crunching…'); } function prepareMediaItem(fileObj, serverData) { @@ -96,6 +99,7 @@ function uploadSuccess(fileObj, serverData) { jQuery('#media-item-' + fileObj.id).html(serverData); return; } + prepareMediaItem(fileObj, serverData); updateMediaForm();