From 64e2a5415af35a9bad93568c8be7b741a8903431 Mon Sep 17 00:00:00 2001 From: venkataakhil Date: Mon, 12 Jun 2023 17:17:18 +0530 Subject: [PATCH] uncomment --- .../doctype/procedure/procedure.js | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/smart_service/transactions/doctype/procedure/procedure.js b/smart_service/transactions/doctype/procedure/procedure.js index 02992a2..2923f45 100644 --- a/smart_service/transactions/doctype/procedure/procedure.js +++ b/smart_service/transactions/doctype/procedure/procedure.js @@ -77,17 +77,17 @@ frappe.ui.form.on('Procedure', { }, callback: function (r) { - // var url = window.location.host; - // var regex = /[://]+/; - // // frappe.db.get_value('Fish', { name: "Fish" }, 'path', (r) => { - // for (var i = 0; i < frm.doc.procedure_details.length; i++) { - // if (frm.doc.procedure_details[i].content && r.message && frm.doc.procedure_details[i].content_type == "Link"){// && !(frm.doc.procedure_details[i].content).includes('')){ - // var x = "' + frm.doc.procedure_details[i].temp_cnt + ''; - // frm.doc.procedure_details[i].content = x - // } - // } - // cur_frm.refresh_fields('procedure_details'); - // // }) + var url = window.location.host; + var regex = /[://]+/; + // frappe.db.get_value('Fish', { name: "Fish" }, 'path', (r) => { + for (var i = 0; i < frm.doc.procedure_details.length; i++) { + if (frm.doc.procedure_details[i].content && r.message && frm.doc.procedure_details[i].content_type == "Link"){// && !(frm.doc.procedure_details[i].content).includes('')){ + var x = "' + frm.doc.procedure_details[i].temp_cnt + ''; + frm.doc.procedure_details[i].content = x + } + } + cur_frm.refresh_fields('procedure_details'); + // }) } }) }