From 3c9883c2a062873c01d91e33b80facbf4ee9987f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Fri, 21 Jun 2013 11:03:12 +0200 Subject: [PATCH 1/1] =?utf8?q?M=C3=A9nage.=20jslint=20ok.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- skins/fileupload.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/skins/fileupload.js b/skins/fileupload.js index 42616a9..6ee52d5 100644 --- a/skins/fileupload.js +++ b/skins/fileupload.js @@ -89,7 +89,7 @@ DDFileUploader.prototype.updateProgressBar = function(progress) { var size = this.progressBarMaxSize * progress; size = Math.round(size); this.progressBar.style.width = size + 'px'; -} +}; DDFileUploader.prototype.upload = function(file) { @@ -102,10 +102,7 @@ DDFileUploader.prototype.upload = function(file) { req.open("PUT", this.uploadUrl + '/' + file.name); req.setRequestHeader("Content-Type", file.type); - addListener(reader, 'load', function(evt){req.sendAsBinary(evt.target.result);}) - // reader.onload = function(evt) { - // req.sendAsBinary(evt.target.result); - // }; + addListener(reader, 'load', function(evt){req.sendAsBinary(evt.target.result);}); reader.readAsBinaryString(file); }; -- 2.20.1