Ver código fonte

[hotfix] fixed attachement issue on CommunicationComposer while reply from Communication (#4078)

version-14
Makarand Bauskar 7 anos atrás
committed by GitHub
pai
commit
5a30cca165
2 arquivos alterados com 7 adições e 5 exclusões
  1. +1
    -0
      frappe/core/doctype/communication/communication.js
  2. +6
    -5
      frappe/public/js/frappe/views/communication.js

+ 1
- 0
frappe/core/doctype/communication/communication.js Ver arquivo

@@ -193,6 +193,7 @@ frappe.ui.form.on("Communication", {
});

return {
frm: frm,
doc: frm.doc,
last_email: frm.doc,
sender: sender_email_id,


+ 6
- 5
frappe/public/js/frappe/views/communication.js Ver arquivo

@@ -309,7 +309,8 @@ frappe.views.CommunicationComposer = Class.extend({

var args = {
args: {
from_form: 1,folder:"Home/Attachments"
from_form: 1,
folder:"Home/Attachments"
},
callback: function(attachment, r) { me.attachments.push(attachment); },
max_width: null,
@@ -331,10 +332,10 @@ frappe.views.CommunicationComposer = Class.extend({
}

$("<h6 class='text-muted add-attachment' style='margin-top: 12px; cursor:pointer;'>"
+__("Select Attachments")+"</h6><div class='attach-list'></div>\
<p class='add-more-attachments'>\
<a class='text-muted small'><i class='octicon octicon-plus' style='font-size: 12px'></i> "
+__("Add Attachment")+"</a></p>").appendTo(attach.empty())
+__("Select Attachments")+"</h6><div class='attach-list'></div>\
<p class='add-more-attachments'>\
<a class='text-muted small'><i class='octicon octicon-plus' style='font-size: 12px'></i> "
+__("Add Attachment")+"</a></p>").appendTo(attach.empty())
attach.find(".add-more-attachments a").on('click',this,function() {
me.upload = frappe.ui.get_upload_dialog(args);
})


Carregando…
Cancelar
Salvar