|
|
@ -240,7 +240,7 @@ define([
|
|
|
|
inProgress: false
|
|
|
|
inProgress: false
|
|
|
|
};
|
|
|
|
};
|
|
|
|
var handleFile = File.handleFile = function (file, e) {
|
|
|
|
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;
|
|
|
|
handleFileState.inProgress = true;
|
|
|
|
|
|
|
|
|
|
|
|
var thumb;
|
|
|
|
var thumb;
|
|
|
@ -258,7 +258,10 @@ define([
|
|
|
|
dropEvent: e
|
|
|
|
dropEvent: e
|
|
|
|
});
|
|
|
|
});
|
|
|
|
handleFileState.inProgress = false;
|
|
|
|
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 () {
|
|
|
|
var getName = function () {
|
|
|
|
if (!showNamePrompt) { return void finish(); }
|
|
|
|
if (!showNamePrompt) { return void finish(); }
|
|
|
|