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:
parent
121991894a
commit
9c8a54f24a
|
@ -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…</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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue