mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 03:29:20 +03:00
Code refactoring
Enable password validation (password change plugins)
This commit is contained in:
parent
8af2140e7a
commit
78f09856e3
8 changed files with 53 additions and 57 deletions
|
|
@ -404,24 +404,23 @@
|
|||
AppApp.prototype.folders = function (fCallback)
|
||||
{
|
||||
Data.foldersLoading(true);
|
||||
|
||||
Remote.folders(_.bind(function (sResult, oData) {
|
||||
|
||||
var bResult = false;
|
||||
Data.foldersLoading(false);
|
||||
if (Enums.StorageResultType.Success === sResult)
|
||||
|
||||
if (Enums.StorageResultType.Success === sResult && oData && oData.Result)
|
||||
{
|
||||
bResult = true;
|
||||
this.setFolders(oData);
|
||||
if (fCallback)
|
||||
{
|
||||
fCallback(true);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
if (fCallback)
|
||||
{
|
||||
if (fCallback)
|
||||
{
|
||||
fCallback(false);
|
||||
}
|
||||
fCallback(bResult);
|
||||
}
|
||||
|
||||
}, this));
|
||||
};
|
||||
|
||||
|
|
@ -1396,7 +1395,7 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
self.bootstartLoginScreen();
|
||||
this.bootstartLoginScreen();
|
||||
}
|
||||
|
||||
if (SimplePace)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue