From ac55076b7bcc59136ac889bd1c03ab4f8307a34c Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 11 Aug 2014 14:01:06 +0000 Subject: [PATCH] Unlock mail folder tree after setFolderStatus operation is finished --- mail/js/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index 9bf0730374..32d35040e7 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -1064,10 +1064,11 @@ app.classes.mail = AppJS.extend( */ mail_queueRefreshFolderList: function(_folders) { + var self = this; // as jsonq is too fast wrap it to be delayed a bit, to ensure the folder actions // are executed last of the queue window.setTimeout(function() { - egw.jsonq('mail.mail_ui.ajax_setFolderStatus',[_folders]); + egw.jsonq('mail.mail_ui.ajax_setFolderStatus',[_folders], function (){self.unlock_tree()}); }, 100); },