mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Prevent to check empty folder name
This commit is contained in:
parent
b50464afeb
commit
33b3be62ef
4 changed files with 151 additions and 145 deletions
|
|
@ -238,6 +238,8 @@ RainLoopApp.prototype.quota = function ()
|
||||||
*/
|
*/
|
||||||
RainLoopApp.prototype.folderInformation = function (sFolder, aList)
|
RainLoopApp.prototype.folderInformation = function (sFolder, aList)
|
||||||
{
|
{
|
||||||
|
if ('' !== Utils.trim(sFolder))
|
||||||
|
{
|
||||||
this.remote().folderInformation(function (sResult, oData) {
|
this.remote().folderInformation(function (sResult, oData) {
|
||||||
if (Enums.StorageResultType.Success === sResult)
|
if (Enums.StorageResultType.Success === sResult)
|
||||||
{
|
{
|
||||||
|
|
@ -328,6 +330,7 @@ RainLoopApp.prototype.folderInformation = function (sFolder, aList)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, sFolder, aList);
|
}, sFolder, aList);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
RainLoopApp.prototype.setMessageSeen = function (oMessage)
|
RainLoopApp.prototype.setMessageSeen = function (oMessage)
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ MailBoxScreen.prototype.onStart = function ()
|
||||||
|
|
||||||
_.delay(function () {
|
_.delay(function () {
|
||||||
var sFolder = RL.data().spamFolder();
|
var sFolder = RL.data().spamFolder();
|
||||||
if (sFolder !== oData.currentFolderFullNameRaw())
|
if (sFolder !== oData.currentFolderFullNameRaw() && '' !== sFolder)
|
||||||
{
|
{
|
||||||
RL.folderInformation(sFolder);
|
RL.folderInformation(sFolder);
|
||||||
}
|
}
|
||||||
|
|
@ -86,7 +86,7 @@ MailBoxScreen.prototype.onStart = function ()
|
||||||
|
|
||||||
_.delay(function () {
|
_.delay(function () {
|
||||||
var sFolder = RL.data().draftFolder();
|
var sFolder = RL.data().draftFolder();
|
||||||
if (sFolder !== oData.currentFolderFullNameRaw())
|
if (sFolder !== oData.currentFolderFullNameRaw() && '' !== sFolder)
|
||||||
{
|
{
|
||||||
RL.folderInformation(sFolder);
|
RL.folderInformation(sFolder);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15129,7 +15129,7 @@ MailBoxScreen.prototype.onStart = function ()
|
||||||
|
|
||||||
_.delay(function () {
|
_.delay(function () {
|
||||||
var sFolder = RL.data().spamFolder();
|
var sFolder = RL.data().spamFolder();
|
||||||
if (sFolder !== oData.currentFolderFullNameRaw())
|
if (sFolder !== oData.currentFolderFullNameRaw() && '' !== sFolder)
|
||||||
{
|
{
|
||||||
RL.folderInformation(sFolder);
|
RL.folderInformation(sFolder);
|
||||||
}
|
}
|
||||||
|
|
@ -15137,7 +15137,7 @@ MailBoxScreen.prototype.onStart = function ()
|
||||||
|
|
||||||
_.delay(function () {
|
_.delay(function () {
|
||||||
var sFolder = RL.data().draftFolder();
|
var sFolder = RL.data().draftFolder();
|
||||||
if (sFolder !== oData.currentFolderFullNameRaw())
|
if (sFolder !== oData.currentFolderFullNameRaw() && '' !== sFolder)
|
||||||
{
|
{
|
||||||
RL.folderInformation(sFolder);
|
RL.folderInformation(sFolder);
|
||||||
}
|
}
|
||||||
|
|
@ -15701,6 +15701,8 @@ RainLoopApp.prototype.quota = function ()
|
||||||
*/
|
*/
|
||||||
RainLoopApp.prototype.folderInformation = function (sFolder, aList)
|
RainLoopApp.prototype.folderInformation = function (sFolder, aList)
|
||||||
{
|
{
|
||||||
|
if ('' !== Utils.trim(sFolder))
|
||||||
|
{
|
||||||
this.remote().folderInformation(function (sResult, oData) {
|
this.remote().folderInformation(function (sResult, oData) {
|
||||||
if (Enums.StorageResultType.Success === sResult)
|
if (Enums.StorageResultType.Success === sResult)
|
||||||
{
|
{
|
||||||
|
|
@ -15791,6 +15793,7 @@ RainLoopApp.prototype.folderInformation = function (sFolder, aList)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, sFolder, aList);
|
}, sFolder, aList);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
RainLoopApp.prototype.setMessageSeen = function (oMessage)
|
RainLoopApp.prototype.setMessageSeen = function (oMessage)
|
||||||
|
|
|
||||||
2
rainloop/v/0.0.0/static/js/app.min.js
vendored
2
rainloop/v/0.0.0/static/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue