From 1d8c630a170c546f5a03265f2f501bf22262812c Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 7 Aug 2014 12:57:33 +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 db5f4585fc..341722466f 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -1541,7 +1541,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); },