Prevent to check empty folder name

This commit is contained in:
RainLoop Team 2013-12-07 02:45:46 +04:00
parent b50464afeb
commit 33b3be62ef
4 changed files with 151 additions and 145 deletions

View file

@ -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)

View file

@ -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);
}

View file

@ -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)

File diff suppressed because one or more lines are too long