mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Mail: Only show attachment placeholder when attachment method isn't regular attach
This commit is contained in:
parent
4cee859516
commit
f60fd1a209
@ -5089,9 +5089,9 @@ app.classes.mail = AppJS.extend(
|
|||||||
(mode == 'share_rw' || mode == 'share_ro') ? 'link' : mode;
|
(mode == 'share_rw' || mode == 'share_ro') ? 'link' : mode;
|
||||||
}
|
}
|
||||||
this.et2.setArrayMgr('content', content);
|
this.et2.setArrayMgr('content', content);
|
||||||
this.addAttachmentPlaceholder();
|
|
||||||
attachments.set_value({content:content.data.attachments});
|
attachments.set_value({content:content.data.attachments});
|
||||||
}
|
}
|
||||||
|
this.addAttachmentPlaceholder();
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -6286,9 +6286,10 @@ app.classes.mail = AppJS.extend(
|
|||||||
{
|
{
|
||||||
// Add link placeholder box
|
// Add link placeholder box
|
||||||
const email = this.et2.getWidgetById("mail_htmltext");
|
const email = this.et2.getWidgetById("mail_htmltext");
|
||||||
|
const attach_type = this.et2.getWidgetById("filemode");
|
||||||
const placeholder = '<fieldset class="attachments mceNonEditable"><legend>Download attachments</legend>' + this.egw.lang('Attachments') + '</fieldset>';
|
const placeholder = '<fieldset class="attachments mceNonEditable"><legend>Download attachments</legend>' + this.egw.lang('Attachments') + '</fieldset>';
|
||||||
|
|
||||||
if (email && !email.getValue().includes(placeholder))
|
if (email && !email.getValue().includes(placeholder) && attach_type.getValue() !== "attach")
|
||||||
{
|
{
|
||||||
email.editor.execCommand('mceInsertContent', false, placeholder);
|
email.editor.execCommand('mceInsertContent', false, placeholder);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user