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-07 12:57:33 +00:00
parent a28cbb4d7e
commit 1d8c630a17

View File

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