X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/336147fc44b6afca59a60c2094824a2a89b5a0de..3a3be28d0d1c6380db8dcd56795218112fa5804e:/skins/fileupload.js?ds=sidebyside diff --git a/skins/fileupload.js b/skins/fileupload.js index a98dda5..5a69929 100644 --- a/skins/fileupload.js +++ b/skins/fileupload.js @@ -114,8 +114,8 @@ DDFileUploaderBase.prototype.progressHandler = function(evt) { }; // Methods about queue -DDFileUploaderBase.prototype.uploadQueuePush = function(slide) { - this.uploadQueue.push(slide); +DDFileUploaderBase.prototype.uploadQueuePush = function(item) { + this.uploadQueue.push(item); if (!this._uploadQueueRunning) { this.startUploadQueue(); } @@ -127,9 +127,9 @@ DDFileUploaderBase.prototype.startUploadQueue = function() { }; DDFileUploaderBase.prototype.uploadQueueLoadNext = function() { - var slide = this.uploadQueue.shift(); - if (slide) { - this.upload(slide); + var item = this.uploadQueue.shift(); + if (item) { + this.upload(item); } else { this._uploadQueueRunning = false;