Show a message after the upload has finished but before the return HTML is finished.

git-svn-id: http://svn.automattic.com/wordpress/trunk@7220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2008-03-10 23:55:26 +00:00
parent 121991894a
commit 9c8a54f24a
1 changed files with 4 additions and 0 deletions

View File

@ -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('<strong style="display: block; padding-top: 9px; padding-left: 1em;">Crunching&hellip;</strong>');
}
function prepareMediaItem(fileObj, serverData) {
@ -96,6 +99,7 @@ function uploadSuccess(fileObj, serverData) {
jQuery('#media-item-' + fileObj.id).html(serverData);
return;
}
prepareMediaItem(fileObj, serverData);
updateMediaForm();