compose email append signature

This commit is contained in:
yuri
2019-01-29 12:48:31 +02:00
parent 42e2f247e1
commit 6fa3d8c769
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -52,7 +52,11 @@ Espo.define('views/email/record/compose', ['views/record/edit', 'views/email/rec
}
if (!this.options.signatureDisabled && this.hasSignature()) {
var body = this.prependSignature(this.model.get('body') || '', this.model.get('isHtml'));
var addSignatureMethod = 'prependSignature';
if (this.options.appendSignature) {
addSignatureMethod = 'appendSignature';
}
var body = this[addSignatureMethod](this.model.get('body') || '', this.model.get('isHtml'));
this.model.set('body', body);
}
+1
View File
@@ -88,6 +88,7 @@ Espo.define('views/modals/compose-email', 'views/modals/edit', function (Dep) {
selectTemplateDisabled: this.options.selectTemplateDisabled,
removeAttachmentsOnSelectTemplate: this.options.removeAttachmentsOnSelectTemplate,
signatureDisabled: this.options.signatureDisabled,
appendSignature: this.options.appendSignature,
exit: function () {}
};
this.createView('edit', viewName, options, callback);