This commit is contained in:
yuri
2015-05-15 17:37:06 +03:00
parent f5faae13c4
commit 2f751085e0
5 changed files with 16 additions and 0 deletions
@@ -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 () {