mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-08 14:14:26 +08: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)
|
||||
{
|
||||
if ('' !== Utils.trim(sFolder))
|
||||
{
|
||||
this.remote().folderInformation(function (sResult, oData) {
|
||||
if (Enums.StorageResultType.Success === sResult)
|
||||
{
|
||||
|
@ -328,6 +330,7 @@ RainLoopApp.prototype.folderInformation = function (sFolder, aList)
|
|||
}
|
||||
}
|
||||
}, sFolder, aList);
|
||||
}
|
||||
};
|
||||
|
||||
RainLoopApp.prototype.setMessageSeen = function (oMessage)
|
||||
|
|
|
@ -78,7 +78,7 @@ MailBoxScreen.prototype.onStart = function ()
|
|||
|
||||
_.delay(function () {
|
||||
var sFolder = RL.data().spamFolder();
|
||||
if (sFolder !== oData.currentFolderFullNameRaw())
|
||||
if (sFolder !== oData.currentFolderFullNameRaw() && '' !== sFolder)
|
||||
{
|
||||
RL.folderInformation(sFolder);
|
||||
}
|
||||
|
@ -86,7 +86,7 @@ MailBoxScreen.prototype.onStart = function ()
|
|||
|
||||
_.delay(function () {
|
||||
var sFolder = RL.data().draftFolder();
|
||||
if (sFolder !== oData.currentFolderFullNameRaw())
|
||||
if (sFolder !== oData.currentFolderFullNameRaw() && '' !== sFolder)
|
||||
{
|
||||
RL.folderInformation(sFolder);
|
||||
}
|
||||
|
|
|
@ -15129,7 +15129,7 @@ MailBoxScreen.prototype.onStart = function ()
|
|||
|
||||
_.delay(function () {
|
||||
var sFolder = RL.data().spamFolder();
|
||||
if (sFolder !== oData.currentFolderFullNameRaw())
|
||||
if (sFolder !== oData.currentFolderFullNameRaw() && '' !== sFolder)
|
||||
{
|
||||
RL.folderInformation(sFolder);
|
||||
}
|
||||
|
@ -15137,7 +15137,7 @@ MailBoxScreen.prototype.onStart = function ()
|
|||
|
||||
_.delay(function () {
|
||||
var sFolder = RL.data().draftFolder();
|
||||
if (sFolder !== oData.currentFolderFullNameRaw())
|
||||
if (sFolder !== oData.currentFolderFullNameRaw() && '' !== sFolder)
|
||||
{
|
||||
RL.folderInformation(sFolder);
|
||||
}
|
||||
|
@ -15701,6 +15701,8 @@ RainLoopApp.prototype.quota = function ()
|
|||
*/
|
||||
RainLoopApp.prototype.folderInformation = function (sFolder, aList)
|
||||
{
|
||||
if ('' !== Utils.trim(sFolder))
|
||||
{
|
||||
this.remote().folderInformation(function (sResult, oData) {
|
||||
if (Enums.StorageResultType.Success === sResult)
|
||||
{
|
||||
|
@ -15791,6 +15793,7 @@ RainLoopApp.prototype.folderInformation = function (sFolder, aList)
|
|||
}
|
||||
}
|
||||
}, sFolder, aList);
|
||||
}
|
||||
};
|
||||
|
||||
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
Reference in a new issue