projects
/
Portfolio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f9b11dd
)
Ménage. jslint ok.
author
Benoît Pin
<pin@cri.ensmp.fr>
Fri, 21 Jun 2013 09:03:12 +0000
(11:03 +0200)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Fri, 21 Jun 2013 09:03:12 +0000
(11:03 +0200)
skins/fileupload.js
patch
|
blob
|
history
diff --git
a/skins/fileupload.js
b/skins/fileupload.js
index
42616a9
..
6ee52d5
100644
(file)
--- 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';
var size = this.progressBarMaxSize * progress;
size = Math.round(size);
this.progressBar.style.width = size + 'px';
-}
+}
;
DDFileUploader.prototype.upload = function(file) {
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);
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);
};
reader.readAsBinaryString(file);
};