From 3bf115f6e39f2353889543fdeb06c1911a93d858 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Tue, 13 Aug 2013 11:46:44 +0200 Subject: [PATCH] =?utf8?q?Renommage=20variable=20dans=20m=C3=A9thodes=20de?= =?utf8?q?=20manipulation=20de=20la=20file=20d'envoi.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- skins/fileupload.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; -- 2.20.1