mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 01:48:35 +01:00
Add click to compose handler for addresses displayed in mail preview
This commit is contained in:
parent
77d6a7e648
commit
bc17e9dc68
@ -6239,5 +6239,15 @@ app.classes.mail = AppJS.extend(
|
|||||||
template: egw.webserverUrl + '/mail/templates/default/predefinedAddressesDialog.xet?',
|
template: egw.webserverUrl + '/mail/templates/default/predefinedAddressesDialog.xet?',
|
||||||
resizable: false,
|
resizable: false,
|
||||||
}, et2_dialog._create_parent('mail'));
|
}, et2_dialog._create_parent('mail'));
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* open
|
||||||
|
* @param _node
|
||||||
|
* @param _address
|
||||||
|
*/
|
||||||
|
onclickCompose(_node, _address)
|
||||||
|
{
|
||||||
|
egw.open_link('mailto:'+_address.value);
|
||||||
}
|
}
|
||||||
});
|
});
|
@ -35,18 +35,18 @@
|
|||||||
<et2-vbox>
|
<et2-vbox>
|
||||||
<et2-hbox>
|
<et2-hbox>
|
||||||
<et2-details class="details" toggleOnHover="true" hoist="true" toggleAlign="left">
|
<et2-details class="details" toggleOnHover="true" hoist="true" toggleAlign="left">
|
||||||
<et2-select-email slot="summary" id="fromaddress" readonly="true" multiple="true"/>
|
<et2-select-email slot="summary" id="fromaddress" readonly="true" multiple="true" onclick="app.mail.onclickCompose"/>
|
||||||
<et2-hbox>
|
<et2-hbox>
|
||||||
<et2-description value="From" class="firstColumnTitle"></et2-description>
|
<et2-description value="From" class="firstColumnTitle"></et2-description>
|
||||||
<et2-select-email id="additionalfromaddress" readonly="true" multiple="true"></et2-select-email>
|
<et2-select-email id="additionalfromaddress" readonly="true" multiple="true" onclick="app.mail.onclickCompose"></et2-select-email>
|
||||||
</et2-hbox>
|
</et2-hbox>
|
||||||
<et2-hbox disabled="!@toaddress" width="100%">
|
<et2-hbox disabled="!@toaddress" width="100%">
|
||||||
<et2-description value="To" class="firstColumnTitle"></et2-description>
|
<et2-description value="To" class="firstColumnTitle"></et2-description>
|
||||||
<et2-select-email id="additionaltoaddress" readonly="true" multiple="true"></et2-select-email>
|
<et2-select-email id="additionaltoaddress" readonly="true" multiple="true" onclick="app.mail.onclickCompose"></et2-select-email>
|
||||||
</et2-hbox>
|
</et2-hbox>
|
||||||
<et2-hbox disabled="!@ccaddress" width="100%">
|
<et2-hbox disabled="!@ccaddress" width="100%">
|
||||||
<et2-description value="Cc" class="firstColumnTitle"></et2-description>
|
<et2-description value="Cc" class="firstColumnTitle"></et2-description>
|
||||||
<et2-select-email id="ccaddress" readonly="true" multiple="true"></et2-select-email>
|
<et2-select-email id="ccaddress" readonly="true" multiple="true" onclick="app.mail.onclickCompose"></et2-select-email>
|
||||||
</et2-hbox>
|
</et2-hbox>
|
||||||
</et2-details>
|
</et2-details>
|
||||||
<et2-date-time align="right" id="date" readonly="true"></et2-date-time>
|
<et2-date-time align="right" id="date" readonly="true"></et2-date-time>
|
||||||
|
Loading…
Reference in New Issue
Block a user