diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctCfnMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctCfnMngList.jsp index d43b9f6c..94021948 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctCfnMngList.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctCfnMngList.jsp @@ -168,7 +168,23 @@ }); } - + //초기화 + function fncReset(thisObj){ + var targetObj = $(thisObj).closest('.list_top').find('select,input'); + $.each(targetObj, function(){ + if ($(this).prop("tagName") == 'SELECT') { + // 초기화 시 무조건 select option 첫번째 지정 + $(this).find("option:first-child").prop("selected",true); + } else if ($(this).attr('type') == 'radio') { + var radioName = $(this).attr("name"); + var radioFirst = $("[name="+radioName+"]")[0]; + $(radioFirst).prop("checked",true) + } else { + $(this).val(''); + } + }); + } + 과정신청기간관리목록 diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctPrdMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctPrdMngList.jsp index 003f0b2c..0c6f696e 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctPrdMngList.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctPrdMngList.jsp @@ -181,26 +181,21 @@ } //초기화 - function fncReset(thisObj) { + 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); - } + $.each(targetObj, function(){ + if ($(this).prop("tagName") == 'SELECT') { + // 초기화 시 무조건 select option 첫번째 지정 + $(this).find("option:first-child").prop("selected",true); + } else if ($(this).attr('type') == 'radio') { + var radioName = $(this).attr("name"); + var radioFirst = $("[name="+radioName+"]")[0]; + $(radioFirst).prop("checked",true) } else { - if ($(this).attr('type') == 'checkbox') { - $(this).prop('checked', false); - } else { - $(this).val(''); - } + $(this).val(''); } - }); - } + }); + } 과정신청기간관리목록 diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsMngList.jsp index 8796ef50..14881a11 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsMngList.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsMngList.jsp @@ -144,6 +144,22 @@ }); } + //초기화 + function fncReset(thisObj){ + var targetObj = $(thisObj).closest('.list_top').find('select,input'); + $.each(targetObj, function(){ + if ($(this).prop("tagName") == 'SELECT') { + // 초기화 시 무조건 select option 첫번째 지정 + $(this).find("option:first-child").prop("selected",true); + } else if ($(this).attr('type') == 'radio') { + var radioName = $(this).attr("name"); + var radioFirst = $("[name="+radioName+"]")[0]; + $(radioFirst).prop("checked",true) + } else { + $(this).val(''); + } + }); + } 교육과정관리 diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduQnaMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduQnaMngList.jsp index e642b17c..dad416d8 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduQnaMngList.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduQnaMngList.jsp @@ -100,7 +100,22 @@ event.stopImmediatePropagation(); } */ - + //초기화 + function fncReset(thisObj){ + var targetObj = $(thisObj).closest('.list_top').find('select,input'); + $.each(targetObj, function(){ + if ($(this).prop("tagName") == 'SELECT') { + // 초기화 시 무조건 select option 첫번째 지정 + $(this).find("option:first-child").prop("selected",true); + } else if ($(this).attr('type') == 'radio') { + var radioName = $(this).attr("name"); + var radioFirst = $("[name="+radioName+"]")[0]; + $(radioFirst).prop("checked",true) + } else { + $(this).val(''); + } + }); + } 교육문의 diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnInstrMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnInstrMngList.jsp index 65f237f6..d4f2e59e 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnInstrMngList.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnInstrMngList.jsp @@ -168,27 +168,22 @@ }); } - - function fncReset(thisObj) { + //초기화 + 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); - } + $.each(targetObj, function(){ + if ($(this).prop("tagName") == 'SELECT') { + // 초기화 시 무조건 select option 첫번째 지정 + $(this).find("option:first-child").prop("selected",true); + } else if ($(this).attr('type') == 'radio') { + var radioName = $(this).attr("name"); + var radioFirst = $("[name="+radioName+"]")[0]; + $(radioFirst).prop("checked",true) } else { - if ($(this).attr('type') == 'checkbox') { - $(this).prop('checked', false); - } else { - $(this).val(''); - } + $(this).val(''); } - }); - } + }); + } 과정신청기간관리목록 diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/eduInstrFeeMngList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/eduInstrFeeMngList.jsp index 2ed0ab91..c8e0c63c 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/eduInstrFeeMngList.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/eduInstrFeeMngList.jsp @@ -170,26 +170,21 @@ } //초기화 - function fncReset(thisObj) { + 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); - } + $.each(targetObj, function(){ + if ($(this).prop("tagName") == 'SELECT') { + // 초기화 시 무조건 select option 첫번째 지정 + $(this).find("option:first-child").prop("selected",true); + } else if ($(this).attr('type') == 'radio') { + var radioName = $(this).attr("name"); + var radioFirst = $("[name="+radioName+"]")[0]; + $(radioFirst).prop("checked",true) } else { - if ($(this).attr('type') == 'checkbox') { - $(this).prop('checked', false); - } else { - $(this).val(''); - } + $(this).val(''); } - }); - } + }); + } //강사료 팝업 function fncInstrCostInfo(eduAplctOrd,eduChasiOrd) { diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/trgtList.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/trgtList.jsp index cae0750d..6873365b 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/trgtList.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/trgtList.jsp @@ -217,7 +217,7 @@ } //초기화 - function fncReset(thisObj) { + /*function fncReset(thisObj) { var targetObj = $(thisObj).closest('.list_top').find('select,input'); $.each(targetObj, function() { if ($(this).prop('tagName') == 'SELECT') { @@ -236,7 +236,22 @@ } } }); - } + }*/ + function fncReset(thisObj){ + var targetObj = $(thisObj).closest('.list_top').find('select,input'); + $.each(targetObj, function(){ + if ($(this).prop("tagName") == 'SELECT') { + // 초기화 시 무조건 select option 첫번째 지정 + $(this).find("option:first-child").prop("selected",true); + } else if ($(this).attr('type') == 'radio') { + var radioName = $(this).attr("name"); + var radioFirst = $("[name="+radioName+"]")[0]; + $(radioFirst).prop("checked",true) + } else { + $(this).val(''); + } + }); + } function showMemo(obj){ if($(obj).is(".on") == true){