mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Mail: Fix moving folder hangs showing waiting icon
This commit is contained in:
parent
61deaad2a2
commit
d8290f035b
@ -3824,16 +3824,16 @@ app.classes.mail = AppJS.extend(
|
||||
egw.loading_prompt('mail_moveFolder', true, '', '#egw_fw_basecontainer');
|
||||
for (var i = 0; i < _senders.length; i++)
|
||||
{
|
||||
egw.jsonq('mail.mail_ui.ajax_MoveFolder', [_senders[i].id, destination.id],
|
||||
// Move is done (successfully or not), remove loading
|
||||
function ()
|
||||
{
|
||||
var id = destination.id.split('::');
|
||||
//refersh the top parent
|
||||
ftree.refreshItem(id[0], null);
|
||||
egw.loading_prompt('mail_moveFolder', false);
|
||||
}
|
||||
);
|
||||
egw.request('mail.mail_ui.ajax_MoveFolder', [_senders[i].id, destination.id])
|
||||
.finally(() =>
|
||||
{
|
||||
// Move is done (successfully or not), remove loading
|
||||
var id = destination.id.split('::');
|
||||
//refersh the top parent
|
||||
ftree.refreshItem(id[0], null);
|
||||
egw.loading_prompt('mail_moveFolder', false);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user