From 4fa9a96c89ae5ad9cbe826f7f7db938cf611f505 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Mon, 21 Mar 2016 15:03:17 +0100 Subject: [PATCH] Code style adjustments #496 --- src/scripts/upload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/upload.js b/src/scripts/upload.js index 374c352..8b6e49f 100755 --- a/src/scripts/upload.js +++ b/src/scripts/upload.js @@ -85,7 +85,6 @@ upload.start = { } - formData.append('function', 'Photo::add') formData.append('albumID', albumID) formData.append(0, file) @@ -178,7 +177,7 @@ upload.start = { pre_progress = progress } - if (progress>=100 && next_file_started==false) { + if (progress>=100 && next_file_started===false) { // Scroll to the uploading file let scrollPos = 0 @@ -212,6 +211,7 @@ upload.start = { if (i < files.length-1) files[i].next = files[i + 1] else files[i].next = null + } window.onbeforeunload = function() { return 'Lychee is currently uploading!' }