mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Get folders status asynchronously as it is an expensive operation to be called in initial load
This commit is contained in:
parent
658dcb121e
commit
fe9dcbcc12
@ -240,7 +240,7 @@ class mail_tree
|
|||||||
}
|
}
|
||||||
|
|
||||||
//List of folders
|
//List of folders
|
||||||
$foldersList = $this->ui->mail_bo->getFolderArrays(null, true, $_allInOneGo?0:2,$_subscribedOnly, true);
|
$foldersList = $this->ui->mail_bo->getFolderArrays(null, true, $_allInOneGo?0:2,$_subscribedOnly, false);
|
||||||
foreach ($foldersList as &$folder)
|
foreach ($foldersList as &$folder)
|
||||||
{
|
{
|
||||||
$path = $parent = $parts = explode($folder['delimiter'], $folder['MAILBOX']);
|
$path = $parent = $parts = explode($folder['delimiter'], $folder['MAILBOX']);
|
||||||
|
@ -169,7 +169,10 @@ app.classes.mail = AppJS.extend(
|
|||||||
var nm = this.et2.getWidgetById(this.nm_index);
|
var nm = this.et2.getWidgetById(this.nm_index);
|
||||||
this.mail_isMainWindow = true;
|
this.mail_isMainWindow = true;
|
||||||
this.mail_disablePreviewArea(true);
|
this.mail_disablePreviewArea(true);
|
||||||
|
|
||||||
|
//Get initial folder status
|
||||||
|
this.mail_refreshFolderStatus(undefined,undefined,false);
|
||||||
|
|
||||||
// Bind to nextmatch refresh to update folder status
|
// Bind to nextmatch refresh to update folder status
|
||||||
if(nm != null && (typeof jQuery._data(nm).events=='undefined'||typeof jQuery._data(nm).events.refresh == 'undefined'))
|
if(nm != null && (typeof jQuery._data(nm).events=='undefined'||typeof jQuery._data(nm).events.refresh == 'undefined'))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user