Ticket #22547: 22547.diff
| File 22547.diff, 906 bytes (added by , 14 years ago) |
|---|
-
wp-includes/js/plupload/handlers.js
91 91 } 92 92 93 93 prepareMediaItem(fileObj, serverData); 94 updateMediaForm();94 //updateMediaForm(); 95 95 96 96 // Increment the counter. 97 97 if ( post_id && item.hasClass('child-of-' + post_id) ) … … 124 124 item.append(serverData); 125 125 prepareMediaItemInit(fileObj); 126 126 } else { // New style: server data is just the attachment ID, fetch the thumbnail and form html from the server 127 item.load('async-upload.php', {attachment_id:serverData, fetch:f}, function(){prepareMediaItemInit(fileObj);updateMediaForm()}); 127 item.load('async-upload.php', {attachment_id:serverData, fetch:f}, function(){ 128 prepareMediaItemInit(fileObj); 129 //updateMediaForm(); 130 }); 128 131 } 129 132 } 130 133