bcc
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
[{"name":"status"},{"name":"from"}],
|
||||
[{"name":"dateSent"}, {"name":"to"}],
|
||||
[{"name":"parent"}, {"name":"cc"}],
|
||||
[false, {"name":"bcc"}],
|
||||
[{"name":"name","fullWidth":true}],
|
||||
[{"name":"body","fullWidth":true}],
|
||||
[{"name":"attachments"},{"name":"isHtml"}]
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
[{"name":"status"},{"name":"from", "readOnly": true}],
|
||||
[{"name":"dateSent", "readOnly": true}, {"name":"to", "readOnly": true}],
|
||||
[{"name":"parent"}, {"name":"cc", "readOnly": true}],
|
||||
[false, {"name":"bcc", "readOnly": true}],
|
||||
[{"name":"name","fullWidth":true, "readOnly": true}],
|
||||
[{"name":"body","fullWidth":true, "readOnly": true}],
|
||||
[{"name":"attachments", "readOnly": true, "fullWidth":true}]
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
[{"name":"dateSent"}, {"name":"from"}],
|
||||
[{"name":"parent"}, {"name":"to"}],
|
||||
[false, {"name":"cc"}],
|
||||
[false, {"name":"bcc"}],
|
||||
[{"name":"name", "fullWidth": true}],
|
||||
[{"name":"body", "fullWidth": true}],
|
||||
[{"name":"attachments", "fullWidth": true}]
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
[{"name":"dateSent", "readOnly": true}, {"name":"from", "readOnly": true}],
|
||||
[{"name":"parent"}, {"name":"to", "readOnly": true}],
|
||||
[false, {"name":"cc", "readOnly": true}],
|
||||
[false, {"name":"bcc", "readOnly": true}],
|
||||
[{"name":"name", "readOnly": true, "fullWidth": true}],
|
||||
[{"name":"body", "readOnly": true, "fullWidth": true}],
|
||||
[{"name":"attachments", "readOnly": true, "fullWidth": true}]
|
||||
|
||||
@@ -65,6 +65,14 @@ Espo.define('Views.Email.Record.Detail', 'Views.Record.Detail', function (Dep) {
|
||||
}
|
||||
},
|
||||
|
||||
handleBccField: function () {
|
||||
if (!this.model.get('bcc')) {
|
||||
this.hideField('bcc');
|
||||
} else {
|
||||
this.showField('bcc');
|
||||
}
|
||||
},
|
||||
|
||||
afterRender: function () {
|
||||
Dep.prototype.afterRender.call(this);
|
||||
|
||||
@@ -76,6 +84,10 @@ Espo.define('Views.Email.Record.Detail', 'Views.Record.Detail', function (Dep) {
|
||||
this.listenTo(this.model, 'change:cc', function () {
|
||||
this.handleCcField();
|
||||
}, this);
|
||||
this.handleBccField();
|
||||
this.listenTo(this.model, 'change:bcc', function () {
|
||||
this.handleBccField();
|
||||
}, this);
|
||||
},
|
||||
|
||||
send: function () {
|
||||
|
||||
Reference in New Issue
Block a user