Commit 54cd2c2f by Bence Dányi

webui: whitespace fix

parent a29eaffa
...@@ -393,7 +393,7 @@ var cloud = (function(cloud) { ...@@ -393,7 +393,7 @@ var cloud = (function(cloud) {
* Uploads the specified file(s) * Uploads the specified file(s)
*/ */
var readfiles = cloud.delayUntil(function(file, next) { var readfiles = cloud.delayUntil(function(file, next) {
console.log('read', next) console.log('read', file, next)
//1 GB file limit //1 GB file limit
if (file.size > 1024 * 1024 * 1024) { if (file.size > 1024 * 1024 * 1024) {
$('#upload-zone').hide(); $('#upload-zone').hide();
...@@ -469,17 +469,17 @@ var cloud = (function(cloud) { ...@@ -469,17 +469,17 @@ var cloud = (function(cloud) {
document.addEventListener('drop', function(e) { document.addEventListener('drop', function(e) {
e.stopPropagation(); e.stopPropagation();
e.preventDefault(); e.preventDefault();
var len=e.dataTransfer.files.length; var len = e.dataTransfer.files.length;
var files=e.dataTransfer.files; var files = e.dataTransfer.files;
console.log(files); console.log(files);
console.log(e.dataTransfer.files); console.log(e.dataTransfer.files);
var i=1; var i = 1;
readfiles(e.dataTransfer.files[0], function() { readfiles(e.dataTransfer.files[0], function() {
console.log('next', i); console.log('next', i);
next=arguments.callee; next = arguments.callee;
return function() { return function() {
console.log('readnext', i, len); console.log('readnext', i, len);
if(i >= len-1) { if (i >= len - 2) {
console.log('end', i, len); console.log('end', i, len);
self.getUploadURL(); self.getUploadURL();
readfiles(files[i++], null); readfiles(files[i++], null);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment