diff --git a/frappe/public/js/frappe/form/controls/data.js b/frappe/public/js/frappe/form/controls/data.js index 26e35943a0..98ca6995a2 100644 --- a/frappe/public/js/frappe/form/controls/data.js +++ b/frappe/public/js/frappe/form/controls/data.js @@ -29,14 +29,17 @@ frappe.ui.form.ControlData = frappe.ui.form.ControlInput.extend({ // Only show edit link to users who can update the doctype if (this.frm && frappe.model.can_write(this.frm.doctype)) { - let doctype_edit_link = null + let doctype_edit_link = null; if (this.frm.meta.custom) { - doctype_edit_link = frappe.utils.get_form_link('DocType', this.frm.doctype, true, - __('this form')) + doctype_edit_link = frappe.utils.get_form_link( + 'DocType', + this.frm.doctype, true, + __('this form') + ); } else { doctype_edit_link = frappe.utils.get_form_link('Customize Form', 'Customize Form', true, null, { doc_type: this.frm.doctype - }) + }); } let edit_note = __('{0}: You can increase the limit for the field if required via {1}', [ __('Note').bold(), diff --git a/frappe/public/js/frappe/form/formatters.js b/frappe/public/js/frappe/form/formatters.js index 075c03da71..c4372b83f9 100644 --- a/frappe/public/js/frappe/form/formatters.js +++ b/frappe/public/js/frappe/form/formatters.js @@ -162,7 +162,7 @@ frappe.form.formatters = { return value || ""; }, DateRange: function(value) { - if(Array.isArray(value)) { + if (Array.isArray(value)) { return __("{0} to {1}", [frappe.datetime.str_to_user(value[0]), frappe.datetime.str_to_user(value[1])]); } else { return value || "";