From 3ba0123db48f8bab81ddf0913e1b95280ef545e8 Mon Sep 17 00:00:00 2001 From: Li Jun <buli@deloitte.com.cn> Date: 星期四, 31 三月 2022 17:56:53 +0800 Subject: [PATCH] Deploy0331 --- force-app/main/default/pages/NewConsumApply.page | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/force-app/main/default/pages/NewConsumApply.page b/force-app/main/default/pages/NewConsumApply.page index 73dd489..7af6237 100644 --- a/force-app/main/default/pages/NewConsumApply.page +++ b/force-app/main/default/pages/NewConsumApply.page @@ -2,7 +2,7 @@ @description : @author : ChangeMeIn@UserSettingsUnder.SFDoc @group : - @last modified on : 03-28-2022 + @last modified on : 03-30-2022 @last modified by : ChangeMeIn@UserSettingsUnder.SFDoc --> <apex:page standardController="Consum_Apply__c" extensions="NewConsumApplyController" id="page"> @@ -413,6 +413,7 @@ <script> //Append Page sfdcPage.appendToOnloadQueue(function () { + debugger var layoutSections = JSON.parse('{!layoutSectionsStr}'); for (let m = 0; m < layoutSections.length; m++) { let layoutSection = layoutSections[m].layoutFields; @@ -428,6 +429,20 @@ if (e.tagName == 'DIV') { e.classList.add("disabledbutton"); } + // let id = 'page:form:block:j_id34:10:j_id35:j_id36:0:j_id37'; + // let id2 = 'page:form:block:j_id34:9:j_id35:j_id36:0:j_id37' + // let lookUpSuffix = '_lkwgt'; + // // if(document.getElementById(id)){ + // // document.getElementById(id).classList.add("disabledbutton"); + // // document.getElementById(id + lookUpSuffix).classList.add("disabledbutton"); + // // } + // if(document.getElementById(id2)){ + // document.getElementById(id2 + lookUpSuffix).classList.add("disabledbutton"); + // } + if(document.querySelectorAll("[data-id='Old_Consum_Apply__c']")){ + document.querySelectorAll("[data-id='Old_Consum_Apply__c']")[0].classList.add("disabledbutton") + document.querySelectorAll("[data-id='Old_Consum_Apply__c']")[1].classList.add("disabledbutton") + } } } } -- Gitblit v1.9.1