projects
/
Portfolio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduction d'un callback « beforeUpload ».
[Portfolio.git]
/
skins
/
portfolio_upload.js
diff --git
a/skins/portfolio_upload.js
b/skins/portfolio_upload.js
index
c4b7982
..
653e802
100644
(file)
--- a/
skins/portfolio_upload.js
+++ b/
skins/portfolio_upload.js
@@
-44,6
+44,12
@@
DDImageUploader.prototype.handleFiles = function(files) {
}
};
}
};
+DDImageUploader.prototype.beforeUpload = function(slide) {
+ this.uploadedSlide = slide;
+ this.previewImg = slide.img;
+ this.progressBar = slide.progressBar;
+};
+
// Methods about preview queue.
DDImageUploader.prototype.previewQueuePush = function(slide) {
// Methods about preview queue.
DDImageUploader.prototype.previewQueuePush = function(slide) {