Lock mail tree by clicking on "empty trash" action and unlock it after the operation is finished

This commit is contained in:
Hadi Nategh 2014-08-11 14:00:43 +00:00
parent 212639b8d2
commit a25630b383

View File

@ -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);
},