From d2845b95b613df77af3ff5782fe04abd7f4390d5 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 3 Jan 2018 11:42:23 +0100 Subject: [PATCH] Fix multiple file upload prompt --- www/common/sframe-common-file.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/www/common/sframe-common-file.js b/www/common/sframe-common-file.js index 4d0370122..bc0dd3374 100644 --- a/www/common/sframe-common-file.js +++ b/www/common/sframe-common-file.js @@ -240,7 +240,7 @@ define([ inProgress: false }; var handleFile = File.handleFile = function (file, e) { - //if (handleFileState.inProgress) { return void handleFileState.queue.push(file); } + if (handleFileState.inProgress) { return void handleFileState.queue.push([file, e]); } handleFileState.inProgress = true; var thumb; @@ -258,7 +258,10 @@ define([ dropEvent: e }); handleFileState.inProgress = false; - if (handleFileState.queue.length) { handleFile(handleFileState.queue.shift()); } + if (handleFileState.queue.length) { + var next = handleFileState.queue.shift(); + handleFile(next[0], next[1]); + } }; var getName = function () { if (!showNamePrompt) { return void finish(); }