1
0
mirror of https://github.com/EGroupware/egroupware.git synced 2024-12-22 14:41:29 +01:00

Unlock mail folder tree after setFolderStatus operation is finished

This commit is contained in:
Hadi Nategh 2014-08-11 14:01:06 +00:00
parent a25630b383
commit ac55076b7b

View File

@ -1064,10 +1064,11 @@ app.classes.mail = AppJS.extend(
*/ */
mail_queueRefreshFolderList: function(_folders) mail_queueRefreshFolderList: function(_folders)
{ {
var self = this;
// as jsonq is too fast wrap it to be delayed a bit, to ensure the folder actions // as jsonq is too fast wrap it to be delayed a bit, to ensure the folder actions
// are executed last of the queue // are executed last of the queue
window.setTimeout(function() { window.setTimeout(function() {
egw.jsonq('mail.mail_ui.ajax_setFolderStatus',[_folders]); egw.jsonq('mail.mail_ui.ajax_setFolderStatus',[_folders], function (){self.unlock_tree()});
}, 100); }, 100);
}, },