Skip to content

Commit

Permalink
Bugfix: compose e-mail file upload failed to wrong conversion to ES2015
Browse files Browse the repository at this point in the history
Must be a 39 degrees workplace failure
  • Loading branch information
djmaze committed Aug 15, 2020
1 parent 97443b7 commit 9f73377
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
25 changes: 9 additions & 16 deletions vendors/jua/jua.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,15 @@
Array.from(aItems).forEach(oItem => {
if (oItem)
{
if (!bUseLimit) {
if (0 <= --iLimit)
{
oFile = Utils.getDataFromFile(oItem);
oFile && fFileCallback(oFile);
}
if (!bUseLimit || 0 <= --iLimit)
{
oFile = Utils.getDataFromFile(oItem);
oFile && fFileCallback(oFile);
}
else if (!bCallLimit)
else if (bUseLimit && !bCallLimit && 0 > iLimit && fLimitCallback)
{
if (0 > iLimit && fLimitCallback)
{
bCallLimit = true;
fLimitCallback(iInputLimit);
}
bCallLimit = true;
fLimitCallback(iInputLimit);
}
}
});
Expand Down Expand Up @@ -436,13 +431,11 @@
}
})
.on('change', function () {
Utils.getDataFromInput(this, function (oFile) {
Utils.getDataFromInput(this, oFile => {
self.oJua.addNewFile(oFile);
self.generateNewInput(oClickElement);

setTimeout(function () {
oLabel.remove();
}, 10);
setTimeout(() => oLabel.remove(), 10);
},
Utils.getValue(self.oOptions, 'multipleSizeLimit', iDefLimit),
self.oJua.getEvent('onLimitReached')
Expand Down
2 changes: 1 addition & 1 deletion vendors/jua/jua.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9f73377

Please sign in to comment.