From c9415b7ba481ec142f000b66cc0fe54ffb4ddaaf Mon Sep 17 00:00:00 2001 From: gbsa-iten Date: Tue, 7 May 2024 12:34:37 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8C=A9=EC=8A=A4=EC=A0=84=EC=86=A1=20?= =?UTF-8?q?=EC=A3=BC=EC=86=8C=EB=A1=9D=20=EB=93=B1=EB=A1=9D=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/js/user/fax/exelLoad.js | 2 +- src/main/webapp/js/user/fax/tabulator.js | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/js/user/fax/exelLoad.js b/src/main/webapp/js/user/fax/exelLoad.js index d53ab18e..089cb34b 100644 --- a/src/main/webapp/js/user/fax/exelLoad.js +++ b/src/main/webapp/js/user/fax/exelLoad.js @@ -70,7 +70,7 @@ function excelExport(event){ if(data != null){ $.each(data, function(i, item){ - if(checkHpNum(item.phone)){ + if(checkFaxNum(item.phone)){ excelAddr.push({phone: item.phone, name: item.name}); } }); diff --git a/src/main/webapp/js/user/fax/tabulator.js b/src/main/webapp/js/user/fax/tabulator.js index b6df7f4e..1d000e3c 100644 --- a/src/main/webapp/js/user/fax/tabulator.js +++ b/src/main/webapp/js/user/fax/tabulator.js @@ -137,7 +137,6 @@ $(document).ready(function (){ //받는사람 목록에 복사/붙여넣기 기능 처리 $('.callList_box').on('paste', function (e) { - var element = e.originalEvent.clipboardData.getData('text'); // 클립보드에 복사한 데이터 가져오기 var elmSplit= []; @@ -148,10 +147,8 @@ $(document).ready(function (){ if(elmLen < 0){ - alert("붙여넣을 연락처를 복사해주세요."); return false; - }else{ tableErrorData.length = 0; // 오류 번호 배열 초기화 @@ -180,7 +177,7 @@ $(document).ready(function (){ }else if(splitData.length == 1){// 데이터가 탭으로 구분이 없는 경우 for(var j=0; j < splitData.length; j++){ - if(checkHpNum(splitData[j].trim())){//핸드폰 양식이 맞는지 확인 + if(checkFaxNum(splitData[j].trim())){//핸드폰 양식이 맞는지 확인 //배열 끝에 데이터 추가해 주기 realPhone.push({phone: removeDash(splitData[j].trim()), name: ""}); } @@ -210,7 +207,7 @@ $(document).ready(function (){ if(j == 1){ - if(checkHpNum(splitData[j].trim())){//핸드폰 양식이 맞는지 확인 + if(checkFaxNum(splitData[j].trim())){//핸드폰 양식이 맞는지 확인 phone = removeDash(splitData[j].trim()); isPhoneValid = true; }else{