From bc17e9dc689490b5e72c85fc4d20bde23b253aeb Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 25 Jan 2023 16:23:11 +0100 Subject: [PATCH] Add click to compose handler for addresses displayed in mail preview --- mail/js/app.js | 10 ++++++++++ mail/templates/default/index.xet | 8 ++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/mail/js/app.js b/mail/js/app.js index 638de3ea08..bf823218f7 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -6239,5 +6239,15 @@ app.classes.mail = AppJS.extend( template: egw.webserverUrl + '/mail/templates/default/predefinedAddressesDialog.xet?', resizable: false, }, et2_dialog._create_parent('mail')); + }, + + /** + * open + * @param _node + * @param _address + */ + onclickCompose(_node, _address) + { + egw.open_link('mailto:'+_address.value); } }); \ No newline at end of file diff --git a/mail/templates/default/index.xet b/mail/templates/default/index.xet index 1804fba700..2165819df0 100644 --- a/mail/templates/default/index.xet +++ b/mail/templates/default/index.xet @@ -35,18 +35,18 @@ - + - + - + - +