From ae3dbaacd49b295337c5c53dbf5cf732898ed6f8 Mon Sep 17 00:00:00 2001
From: GWY <guweiyiscp096@foxmail.com>
Date: 星期四, 17 三月 2022 09:49:00 +0800
Subject: [PATCH] PJ1降类修复
---
force-app/main/default/pages/QuoteExcelImport.page | 21 ++++-----------------
1 files changed, 4 insertions(+), 17 deletions(-)
diff --git a/force-app/main/default/pages/QuoteExcelImport.page b/force-app/main/default/pages/QuoteExcelImport.page
index e476795..aade75f 100644
--- a/force-app/main/default/pages/QuoteExcelImport.page
+++ b/force-app/main/default/pages/QuoteExcelImport.page
@@ -1,4 +1,4 @@
-<apex:page standardController="Quote" id="page11" showHeader="false" sidebar="false" pageStyle="Quote" >
+<apex:page standardController="Quote" showHeader="false" sidebar="false" pageStyle="Quote" >
<script type="text/javascript">
function closeMe() {
top.window.close();
@@ -10,23 +10,10 @@
top.window.close();
}
function setCB() {
- var userAgent = navigator.userAgent;
- var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1;
- var isEdge = userAgent.indexOf("Edge") > -1 && !isIE;
- var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1;
- if (isIE|| isIE11 ){
+ //txt = document.forms['{!$Component.mainForm}']['{!$Component.mainForm.page1.exceltext}'].value;
txt = window.clipboardData.getData("text");
document.forms['{!$Component.mainForm}']['{!$Component.mainForm.page1.exceltext}'].value = txt;
- }else{
- try{
- navigator.clipboard.readText().then(function(text){
- document.getElementById('page11:mainForm:page1:exceltext').value =text ;
- });
- }catch(err){
- alert('绮樿创澶辫触锛�');
- }
- }
- }
+ }
</script>
<apex:form id="mainForm">
<apex:pageBlock id="page1">
@@ -37,7 +24,7 @@
</tr>
<tr>
<td colspan="2"><apex:outputLabel value="{!$Label.Tab_Text}"/></td>
- <td><apex:commandButton onclick="setCB();return false;" style="width:100px" value="{!$Label.Paste_IE}" /></td>
+ <td> <!-- <apex:commandButton onclick="setCB()" style="width:100px" value="{!$Label.Paste_IE}" /> --></td>
</tr>
<tr>
<td colspan="3"><apex:inputTextarea style="width:350px;height:100px" id="exceltext"/></td>
--
Gitblit v1.9.1