From a25630b38372504dc25d546f9547ed0dc19e2211 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 11 Aug 2014 14:00:43 +0000 Subject: [PATCH] Lock mail tree by clicking on "empty trash" action and unlock it after the 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 b55ca2a6e4..9bf0730374 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -1473,7 +1473,8 @@ app.classes.mail = AppJS.extend( var server = _senders[0].iface.id.split('::'); var self = this; this.egw.message(this.egw.lang('empty trash')); - egw.json('mail.mail_ui.ajax_emptyTrash',[server[0]],function(){self.lock_tree();}) + this.lock_tree(); + egw.json('mail.mail_ui.ajax_emptyTrash',[server[0]],function(){self.unlock_tree();}) .sendRequest(true); },