@@ -17,6 +17,9 @@ cur_frm.cscript.onload = function(doc) { | |||||
cur_frm.fields_dict.customer.get_query = erpnext.utils.customer_query; | cur_frm.fields_dict.customer.get_query = erpnext.utils.customer_query; | ||||
cur_frm.fields_dict.supplier.get_query = erpnext.utils.supplier_query; | cur_frm.fields_dict.supplier.get_query = erpnext.utils.supplier_query; | ||||
if(doc.content) | |||||
doc.content = wn.utils.escape_script_and_style(doc.content); | |||||
} | } | ||||
cur_frm.cscript.refresh = function(doc, dt, dn) { | cur_frm.cscript.refresh = function(doc, dt, dn) { | ||||
@@ -29,8 +32,6 @@ cur_frm.cscript.refresh = function(doc, dt, dn) { | |||||
}); | }); | ||||
if(hide_list.length < field_list.length) hide_field(hide_list); | if(hide_list.length < field_list.length) hide_field(hide_list); | ||||
doc.content = wn.utils.escape_script_and_style(doc.content); | |||||
} | } | ||||
} | } | ||||
@@ -228,13 +228,13 @@ wn.views.CommunicationComposer = Class.extend({ | |||||
return $(element).attr("data-file-name"); | return $(element).attr("data-file-name"); | ||||
}) | }) | ||||
// if(form_values.attach_document_print) { | |||||
if(form_values.attach_document_print) { | |||||
_p.build(form_values.select_print_format || "", function(print_format_html) { | _p.build(form_values.select_print_format || "", function(print_format_html) { | ||||
me.send_email(btn, form_values, selected_attachments, print_format_html); | me.send_email(btn, form_values, selected_attachments, print_format_html); | ||||
}); | }); | ||||
// } else { | |||||
// me.send_email(btn, form_values, selected_attachments); | |||||
// } | |||||
} else { | |||||
me.send_email(btn, form_values, selected_attachments); | |||||
} | |||||
}); | }); | ||||
}, | }, | ||||