X-Git-Url: https://svn.cri.ensmp.fr/git/Portfolio.git/blobdiff_plain/8edf2ae1a38ce8f16c551accdbfa4d418fe4101e..b2f7492bbdef474919330ff5a3404b8795036314:/skins/portfolio_upload.js?ds=inline diff --git a/skins/portfolio_upload.js b/skins/portfolio_upload.js index c4b7982..c9c492a 100644 --- a/skins/portfolio_upload.js +++ b/skins/portfolio_upload.js @@ -44,6 +44,17 @@ DDImageUploader.prototype.handleFiles = function(files) { } }; +DDImageUploader.prototype.beforeUpload = function(slide) { + this.uploadedSlide = slide; + this.previewImg = slide.img; + this.progressBar = slide.progressBar; +}; + +DDImageUploader.prototype.progressHandlerCB = function(progress) { + this.updateProgressBar(progress); + var currentOpacity = this.previewImg.style.opacity; + this.previewImg.style.opacity = Math.max(currentOpacity, progress); +}; // Methods about preview queue. DDImageUploader.prototype.previewQueuePush = function(slide) {