This commit is contained in:
myname 2024-03-07 14:12:34 +09:00
commit f6ce89190c
5 changed files with 76 additions and 13 deletions

View File

@ -81,7 +81,8 @@
listForm.submit(); listForm.submit();
} }
function fncReset(thisObj){ // 종료일 캘린더까지 초기화가 안됨
/*function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input'); var targetObj = $(thisObj).closest('.list_top').find('select,input');
$.each(targetObj, function(){ $.each(targetObj, function(){
if($(this).prop('tagName') == 'SELECT'){ if($(this).prop('tagName') == 'SELECT'){
@ -98,7 +99,19 @@
$(this).val(''); $(this).val('');
} }
}); });
} }*/
// 캘린더 및 체크박스까지 초기화 가능
function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input');
$.each(targetObj, function(){
if ($(this).attr('type') == 'checkbox') {
$(this).prop('checked',false);
} else {
$(this).val('');
}
});
}
//체크박스 전체 선택 //체크박스 전체 선택
function chkAll(thisObj){ function chkAll(thisObj){

View File

@ -83,7 +83,8 @@
listForm.submit(); listForm.submit();
} }
function fncReset(thisObj){ // 종료일 캘린더까지 초기화가 안됨
/*function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input'); var targetObj = $(thisObj).closest('.list_top').find('select,input');
$.each(targetObj, function(){ $.each(targetObj, function(){
if($(this).prop('tagName') == 'SELECT'){ if($(this).prop('tagName') == 'SELECT'){
@ -100,7 +101,19 @@
$(this).val(''); $(this).val('');
} }
}); });
} }*/
// 캘린더 및 체크박스까지 초기화 가능
function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input');
$.each(targetObj, function(){
if ($(this).attr('type') == 'checkbox') {
$(this).prop('checked',false);
} else {
$(this).val('');
}
});
}
//체크박스 전체 선택 //체크박스 전체 선택
function chkAll(thisObj){ function chkAll(thisObj){

View File

@ -307,7 +307,7 @@
} }
}); });
} }
function fncReset(thisObj){ /*function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input'); var targetObj = $(thisObj).closest('.list_top').find('select,input');
$.each(targetObj, function(){ $.each(targetObj, function(){
if($(this).prop('tagName') == 'SELECT'){ if($(this).prop('tagName') == 'SELECT'){
@ -322,7 +322,19 @@
$(this).val(''); $(this).val('');
} }
}); });
} }*/
// 캘린더 및 체크박스까지 초기화 가능
function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input');
$.each(targetObj, function(){
if ($(this).attr('type') == 'checkbox') {
$(this).prop('checked',false);
} else {
$(this).val('');
}
});
}
/* /*
function fncInstrMassAsgnm(){ function fncInstrMassAsgnm(){

View File

@ -81,8 +81,8 @@
listForm.action = "<c:url value='/ve/oprtn/instr/tngrVisitEdu/instrInfo/instrAplctStngExcel.do'/>"; listForm.action = "<c:url value='/ve/oprtn/instr/tngrVisitEdu/instrInfo/instrAplctStngExcel.do'/>";
listForm.submit(); listForm.submit();
} }
// 종료일 캘린더까지 초기화가 안됨
function fncReset(thisObj){ /*function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input'); var targetObj = $(thisObj).closest('.list_top').find('select,input');
$.each(targetObj, function(){ $.each(targetObj, function(){
if($(this).prop('tagName') == 'SELECT'){ if($(this).prop('tagName') == 'SELECT'){
@ -97,7 +97,19 @@
$(this).val(''); $(this).val('');
} }
}); });
} }*/
// 캘린더 및 체크박스까지 초기화 가능
function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input');
$.each(targetObj, function(){
if ($(this).attr('type') == 'checkbox') {
$(this).prop('checked',false);
} else {
$(this).val('');
}
});
}
function excelDownLoad(){ function excelDownLoad(){
var listForm = document.listForm ; var listForm = document.listForm ;

View File

@ -79,8 +79,8 @@
// commonPopWindowopenForm("/ve/oprtn/instr/tngrVisitEdu/popup/instrInfo/instrMdfyRqstPopup.do", "900", "700", "instrMdfyRqstPopup", $('#listForm')); // commonPopWindowopenForm("/ve/oprtn/instr/tngrVisitEdu/popup/instrInfo/instrMdfyRqstPopup.do", "900", "700", "instrMdfyRqstPopup", $('#listForm'));
event.stopImmediatePropagation(); event.stopImmediatePropagation();
} }
// 종료일 캘린더까지 초기화가 안됨
function fncReset(thisObj){ /*function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input'); var targetObj = $(thisObj).closest('.list_top').find('select,input');
$.each(targetObj, function(){ $.each(targetObj, function(){
if($(this).prop('tagName') == 'SELECT'){ if($(this).prop('tagName') == 'SELECT'){
@ -95,7 +95,20 @@
$(this).val(''); $(this).val('');
} }
}); });
} }*/
// 캘린더 및 체크박스까지 초기화 가능
function fncReset(thisObj){
var targetObj = $(thisObj).closest('.list_top').find('select,input');
$.each(targetObj, function(){
if ($(this).attr('type') == 'checkbox') {
$(this).prop('checked',false);
} else {
$(this).val('');
}
});
}
</script> </script>
<title>강사신청 관리</title> <title>강사신청 관리</title>
</head> </head>