mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-30 02:27:42 +08:00
Bugfix: compose e-mail file upload failed to wrong conversion to ES2015
Must be a 39 degrees workplace failure
This commit is contained in:
parent
97443b7c7d
commit
9f73377a88
2 changed files with 11 additions and 18 deletions
27
vendors/jua/jua.js
vendored
27
vendors/jua/jua.js
vendored
|
@ -31,20 +31,15 @@
|
||||||
Array.from(aItems).forEach(oItem => {
|
Array.from(aItems).forEach(oItem => {
|
||||||
if (oItem)
|
if (oItem)
|
||||||
{
|
{
|
||||||
if (!bUseLimit) {
|
if (!bUseLimit || 0 <= --iLimit)
|
||||||
if (0 <= --iLimit)
|
|
||||||
{
|
|
||||||
oFile = Utils.getDataFromFile(oItem);
|
|
||||||
oFile && fFileCallback(oFile);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (!bCallLimit)
|
|
||||||
{
|
{
|
||||||
if (0 > iLimit && fLimitCallback)
|
oFile = Utils.getDataFromFile(oItem);
|
||||||
{
|
oFile && fFileCallback(oFile);
|
||||||
bCallLimit = true;
|
}
|
||||||
fLimitCallback(iInputLimit);
|
else if (bUseLimit && !bCallLimit && 0 > iLimit && fLimitCallback)
|
||||||
}
|
{
|
||||||
|
bCallLimit = true;
|
||||||
|
fLimitCallback(iInputLimit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -436,13 +431,11 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.on('change', function () {
|
.on('change', function () {
|
||||||
Utils.getDataFromInput(this, function (oFile) {
|
Utils.getDataFromInput(this, oFile => {
|
||||||
self.oJua.addNewFile(oFile);
|
self.oJua.addNewFile(oFile);
|
||||||
self.generateNewInput(oClickElement);
|
self.generateNewInput(oClickElement);
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(() => oLabel.remove(), 10);
|
||||||
oLabel.remove();
|
|
||||||
}, 10);
|
|
||||||
},
|
},
|
||||||
Utils.getValue(self.oOptions, 'multipleSizeLimit', iDefLimit),
|
Utils.getValue(self.oOptions, 'multipleSizeLimit', iDefLimit),
|
||||||
self.oJua.getEvent('onLimitReached')
|
self.oJua.getEvent('onLimitReached')
|
||||||
|
|
2
vendors/jua/jua.min.js
vendored
2
vendors/jua/jua.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue