X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/934c239d0815781f05245f4b88fd8ac3a73452d3..c251e45d0fa1c8f0647c1b065d296d6013b62d47:/skins/fileupload.js diff --git a/skins/fileupload.js b/skins/fileupload.js index 2b6c4a8..8f6eeda 100644 --- a/skins/fileupload.js +++ b/skins/fileupload.js @@ -93,6 +93,8 @@ DDFileUploader.prototype.uploadCompleteHandler = function(req) { var fragment = getCopyOfNode(req.responseXML.documentElement.firstChild); var img = fragment.getElementsByTagName('img')[0]; img.onload = function(evt) { + var preview = slide.getElementsByTagName('img')[0]; + preview.src = undefined; slide.parentNode.replaceChild(fragment, slide); }; this.previewsLoaded--;