From b409a32f3e8ae086ff8e8017b6f68bb3960473cb Mon Sep 17 00:00:00 2001 From: kmg Date: Thu, 7 Mar 2024 14:26:42 +0900 Subject: [PATCH] =?UTF-8?q?2024/03/07=20=EC=B4=88=EA=B8=B0=ED=99=94=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tngrVisitEdu/eduAsgnmCnfrmMngList.jsp | 20 ++++++++----------- .../oprtn/tngrVisitEdu/eduInstrFeeMngList.jsp | 18 +++++++---------- .../jsp/oprtn/tngrVisitEdu/eduRsltMngList.jsp | 19 +++++++----------- .../tngrVisitEdu/instrActvtHstryMngList.jsp | 18 +++++++++++++++-- 4 files changed, 38 insertions(+), 37 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduAsgnmCnfrmMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduAsgnmCnfrmMngList.jsp index 567f6fde..9d2bb853 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduAsgnmCnfrmMngList.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduAsgnmCnfrmMngList.jsp @@ -45,23 +45,19 @@ fncGoList(); } } - + function fncReset(thisObj){ var targetObj = $(thisObj).closest('.list_top').find('select,input'); $.each(targetObj, function(){ - if($(this).prop('tagName') == 'SELECT'){ - if($(this).attr('name').indexOf('Month') != -1){ - $(this).val(new Date().getMonth()+1); - }else if($(this).attr('name').indexOf('Year') != -1){ - $(this).val(new Date().getFullYear()); - }else{ - $(this).prop("selectedIndex", 0); - } - }else{ + console.log($(this)) + if ($(this).prop("tagName") == 'SELECT') { + // 초기화 시 무조건 select option 첫번째 지정 + $(this).find("option:first-child").prop("selected",true) + } else { $(this).val(''); } - }); - } + }); + } function linkPage(pageNo){ var listForm = document.listForm ; diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduInstrFeeMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduInstrFeeMngList.jsp index 921b05e8..e85a8ede 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduInstrFeeMngList.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduInstrFeeMngList.jsp @@ -167,19 +167,15 @@ function fncReset(thisObj){ var targetObj = $(thisObj).closest('.list_top').find('select,input'); $.each(targetObj, function(){ - if($(this).prop('tagName') == 'SELECT'){ - if($(this).attr('name').indexOf('Month') != -1){ - $(this).val(new Date().getMonth()+1); - }else if($(this).attr('name').indexOf('Year') != -1){ - $(this).val(new Date().getFullYear()); - }else{ - $(this).prop("selectedIndex", 0); - } - }else{ + console.log($(this)) + if ($(this).prop("tagName") == 'SELECT') { + // 초기화 시 무조건 select option 첫번째 지정 + $(this).find("option:first-child").prop("selected",true) + } else { $(this).val(''); } - }); - } + }); + } function chkSendSms(){ var chkLen = $(listForm).find("input[name=chk]:checked").length; diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduRsltMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduRsltMngList.jsp index bf93af25..8cee1873 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduRsltMngList.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/eduRsltMngList.jsp @@ -245,20 +245,15 @@ function fncReset(thisObj){ var targetObj = $(thisObj).closest('.list_top').find('select,input'); $.each(targetObj, function(){ - if($(this).prop('tagName') == 'SELECT'){ - if($(this).attr('name').indexOf('Month') != -1){ - $(this).val(new Date().getMonth()+1); - }else if($(this).attr('name').indexOf('Year') != -1){ - $(this).val(new Date().getFullYear()); - }else{ - $(this).prop("selectedIndex", 0); - } - }else{ + console.log($(this)) + if ($(this).prop("tagName") == 'SELECT') { + // 초기화 시 무조건 select option 첫번째 지정 + $(this).find("option:first-child").prop("selected",true) + } else { $(this).val(''); } - }); - } - + }); + } function fncExcelDownLoad(){ var listForm = document.listForm ; diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrActvtHstryMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrActvtHstryMngList.jsp index e3333f8b..671595d6 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrActvtHstryMngList.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/tngrVisitEdu/instrActvtHstryMngList.jsp @@ -65,7 +65,7 @@ form.submit(); } - function fncReset(thisObj){ + /*function fncReset(thisObj){ var targetObj = $(thisObj).closest('.list_top').find('select,input'); $.each(targetObj, function(){ if($(this).prop('tagName') == 'SELECT'){ @@ -80,7 +80,21 @@ $(this).val(''); } }); - } + }*/ + + function fncReset(thisObj){ + var targetObj = $(thisObj).closest('.list_top').find('select,input'); + $.each(targetObj, function(){ + console.log($(this)) + if ($(this).prop("tagName") == 'SELECT') { + // 초기화 시 무조건 select option 첫번째 지정 + $(this).find("option:first-child").prop("selected",true) + } else { + $(this).val(''); + } + }); + } + 강사활동확인서신청관리