Fix multiple file upload prompt

pull/1/head
yflory 7 years ago
parent 875035a41a
commit d2845b95b6

@ -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(); }

Loading…
Cancel
Save