Mail: Fix adding file share via download link into an already open mail does not always work

Select options were not right, and sometimes the updated value would be reset by the browser
This commit is contained in:
nathan 2024-07-16 11:06:50 -06:00
parent c4292a324d
commit 72057cb78d
2 changed files with 5 additions and 4 deletions

View File

@ -991,14 +991,15 @@ app.classes.mail = AppJS.extend(
if (content[field]['files'] && content[field]['files']['filemode']
&& filemode && filemode.get_value() != content[field]['files']['filemode'])
{
var filemode_label = filemode.options.select_options.filter(_item => {
return _item.value == content[field]['files']['filemode']
var filemode_label = filemode.select_options.filter(_item =>
{
return _item.value == content[field]['files']['filemode']
})[0]['label'];
Et2Dialog.show_dialog(function (_button)
{
if (_button == Et2Dialog.YES_BUTTON)
{
compose_et2[0].widgetContainer._inst.submit();
compose_et2[0].submit();
}
},
this.egw.lang(

View File

@ -13,7 +13,7 @@
<et2-checkbox statustext="check to receive a notification when the message is read (note: not all clients support this and/or the receiver may not authorize the notification)" id="disposition" selectedValue="on" unselectedValue="off" ></et2-checkbox>
<et2-checkbox statustext="check to sign the message on send" id="smime_sign" selectedValue="on" unselectedValue="off" ></et2-checkbox>
<et2-checkbox statustext="check to encrypt the message on send" id="smime_encrypt" selectedValue="on" unselectedValue="off" ></et2-checkbox>
<et2-textbox id="appendix_data"></et2-textbox>
<et2-textbox id="appendix_data" autocomplete="off"></et2-textbox>
<et2-password id="smime_passphrase"></et2-password>
<et2-select id="to_integrate_ids" multiple="true" allowFreeEntries="true" editModeEnabled="true" searchUrl="EGroupware\Api\Etemplate\Widget\Taglist::ajax_search"></et2-select>
<et2-select id="priority"></et2-select>