Make sure the folder status runs last in jsonq

This commit is contained in:
Hadi Nategh 2017-03-08 15:11:42 +01:00
parent 9361927edf
commit d2fb5d56be

View File

@ -1437,7 +1437,7 @@ app.classes.mail = AppJS.extend(
}, },
/** /**
* Queues a refreshFolderList request for 10ms. Actually this will just execute the * Queues a refreshFolderList request for 500ms. Actually this will just execute the
* code after the calling script has finished. * code after the calling script has finished.
* *
* @param {array} _folders description * @param {array} _folders description
@ -1449,7 +1449,7 @@ app.classes.mail = AppJS.extend(
// 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], function (){self.unlock_tree();}); egw.jsonq('mail.mail_ui.ajax_setFolderStatus',[_folders], function (){self.unlock_tree();});
}, 100); }, 500);
}, },
/** /**