* Mail: Fix contextmenu does not work on select all

This commit is contained in:
Hadi Nategh 2017-06-13 15:54:52 +02:00
parent f211c72b30
commit 9eeb8e1199

View File

@ -5528,7 +5528,7 @@ app.classes.mail = AppJS.extend(
spamTitan_setActionTitle: function (_action, _sender) spamTitan_setActionTitle: function (_action, _sender)
{ {
var id = _sender[0].id; var id = _sender[0].id != 'nm'? _sender[0].id:_sender[1].id;
var data = egw.dataGetUIDdata(id); var data = egw.dataGetUIDdata(id);
var fromaddress = data.data.fromaddress.match(/<([^\'\" <>]+)>$/); var fromaddress = data.data.fromaddress.match(/<([^\'\" <>]+)>$/);
var email = _sender.length>1? this.egw.lang('emails'):(fromaddress && fromaddress[1]) ?fromaddress[1]:data.data.fromaddress; var email = _sender.length>1? this.egw.lang('emails'):(fromaddress && fromaddress[1]) ?fromaddress[1]:data.data.fromaddress;