[ui] minor fixes

This commit is contained in:
Rushabh Mehta
2014-12-30 18:09:40 +05:30
parent a5b149c061
commit afbfdcf552
3 changed files with 3 additions and 4 deletions

View File

@@ -120,7 +120,7 @@ $.extend(erpnext.utils, {
render_address_and_contact: function(frm) {
// render address
$(frm.fields_dict['address_html'].wrapper)
.html(frappe.render(frappe.templates.address_list,
.html(frappe.render_template("address_list",
cur_frm.doc.__onload))
.find(".btn-address").on("click", function() {
new_doc("Address");
@@ -129,7 +129,7 @@ $.extend(erpnext.utils, {
// render contact
if(frm.fields_dict['contact_html']) {
$(frm.fields_dict['contact_html'].wrapper)
.html(frappe.render(frappe.templates.contact_list,
.html(frappe.render_template("contact_list",
cur_frm.doc.__onload))
.find(".btn-contact").on("click", function() {
new_doc("Contact");