瀏覽代碼

[fix] reply for email

version-14
Rushabh Mehta 8 年之前
父節點
當前提交
cfb7f4bd36
共有 2 個檔案被更改,包括 4 行新增4 行删除
  1. +1
    -1
      frappe/public/js/frappe/form/footer/timeline.js
  2. +3
    -3
      frappe/public/js/frappe/views/communication.js

+ 1
- 1
frappe/public/js/frappe/form/footer/timeline.js 查看文件

@@ -233,7 +233,7 @@ frappe.ui.form.Timeline = Class.extend({
new frappe.views.CommunicationComposer({ new frappe.views.CommunicationComposer({
doc: me.frm.doc, doc: me.frm.doc,
txt: "", txt: "",
subject: __('Reply'),
title: __('Reply'),
frm: me.frm, frm: me.frm,
last_email: last_email last_email: last_email
}); });


+ 3
- 3
frappe/public/js/frappe/views/communication.js 查看文件

@@ -12,7 +12,7 @@ frappe.views.CommunicationComposer = Class.extend({
make: function() { make: function() {
var me = this; var me = this;
this.dialog = new frappe.ui.Dialog({ this.dialog = new frappe.ui.Dialog({
title: (this.subject || __("New Email")),
title: (this.title || this.subject || __("New Email")),
no_submit_on_enter: true, no_submit_on_enter: true,
fields: this.get_fields(), fields: this.get_fields(),
primary_action_label: __("Send"), primary_action_label: __("Send"),
@@ -49,12 +49,12 @@ frappe.views.CommunicationComposer = Class.extend({
var fields= [ var fields= [
{label:__("To"), fieldtype:"Data", reqd: 0, fieldname:"recipients",length:524288}, {label:__("To"), fieldtype:"Data", reqd: 0, fieldname:"recipients",length:524288},
{fieldtype: "Section Break", collapsible: 1, label: "CC & Standard Reply"}, {fieldtype: "Section Break", collapsible: 1, label: "CC & Standard Reply"},
{label:__("CC"), fieldtype:"Data", fieldname:"cc",length:524288},
{label:__("CC"), fieldtype:"Data", fieldname:"cc", length:524288},
{label:__("Standard Reply"), fieldtype:"Link", options:"Standard Reply", {label:__("Standard Reply"), fieldtype:"Link", options:"Standard Reply",
fieldname:"standard_reply"}, fieldname:"standard_reply"},
{fieldtype: "Section Break"}, {fieldtype: "Section Break"},
{label:__("Subject"), fieldtype:"Data", reqd: 1, {label:__("Subject"), fieldtype:"Data", reqd: 1,
fieldname:"subject",length:524288},
fieldname:"subject", length:524288},
{fieldtype: "Section Break"}, {fieldtype: "Section Break"},
{label:__("Message"), fieldtype:"Text Editor", reqd: 1, {label:__("Message"), fieldtype:"Text Editor", reqd: 1,
fieldname:"content"}, fieldname:"content"},


Loading…
取消
儲存