From 47efcaa6a55e4b397442616f8b24d672afddefd8 Mon Sep 17 00:00:00 2001
From: 沙世明 <shashiming@prec-tech.com>
Date: 星期五, 08 四月 2022 17:13:48 +0800
Subject: [PATCH] SWAG-CC58ME
---
force-app/main/default/pages/InsReportPDF.page | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/pages/InsReportPDF.page b/force-app/main/default/pages/InsReportPDF.page
index a58c973..fa829dd 100644
--- a/force-app/main/default/pages/InsReportPDF.page
+++ b/force-app/main/default/pages/InsReportPDF.page
@@ -230,7 +230,7 @@
iframe.setAttribute('style', 'position:absolute;right:0; top:0; bottom:0; height:100%; width:100%');
document.body.appendChild(iframe);
iframe.src = pdf.output('datauristring');
- for(let e of document.body.childNodes){
+ for(let ei in document.body.childNodes){let e=document.body.childNodes[ei];
if( e != iframe && e.style){
e.style.display = 'none';
}
@@ -307,7 +307,7 @@
unblockUI();
document.getElementById("Responsible_Person__c").innerHTML = data.object.responsiblePerson;
- setTimeout(() => {
+ setTimeout(function(){
jsPdfDownload();
}, 1500);
}, staticResources.token);
--
Gitblit v1.9.1