2024/03/07 초기화 기능 수정
This commit is contained in:
parent
f6ce89190c
commit
b409a32f3e
@ -49,15 +49,11 @@
|
|||||||
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'){
|
console.log($(this))
|
||||||
if($(this).attr('name').indexOf('Month') != -1){
|
if ($(this).prop("tagName") == 'SELECT') {
|
||||||
$(this).val(new Date().getMonth()+1);
|
// 초기화 시 무조건 select option 첫번째 지정
|
||||||
}else if($(this).attr('name').indexOf('Year') != -1){
|
$(this).find("option:first-child").prop("selected",true)
|
||||||
$(this).val(new Date().getFullYear());
|
} else {
|
||||||
}else{
|
|
||||||
$(this).prop("selectedIndex", 0);
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
$(this).val('');
|
$(this).val('');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -167,15 +167,11 @@
|
|||||||
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'){
|
console.log($(this))
|
||||||
if($(this).attr('name').indexOf('Month') != -1){
|
if ($(this).prop("tagName") == 'SELECT') {
|
||||||
$(this).val(new Date().getMonth()+1);
|
// 초기화 시 무조건 select option 첫번째 지정
|
||||||
}else if($(this).attr('name').indexOf('Year') != -1){
|
$(this).find("option:first-child").prop("selected",true)
|
||||||
$(this).val(new Date().getFullYear());
|
} else {
|
||||||
}else{
|
|
||||||
$(this).prop("selectedIndex", 0);
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
$(this).val('');
|
$(this).val('');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -245,21 +245,16 @@
|
|||||||
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'){
|
console.log($(this))
|
||||||
if($(this).attr('name').indexOf('Month') != -1){
|
if ($(this).prop("tagName") == 'SELECT') {
|
||||||
$(this).val(new Date().getMonth()+1);
|
// 초기화 시 무조건 select option 첫번째 지정
|
||||||
}else if($(this).attr('name').indexOf('Year') != -1){
|
$(this).find("option:first-child").prop("selected",true)
|
||||||
$(this).val(new Date().getFullYear());
|
} else {
|
||||||
}else{
|
|
||||||
$(this).prop("selectedIndex", 0);
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
$(this).val('');
|
$(this).val('');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function fncExcelDownLoad(){
|
function fncExcelDownLoad(){
|
||||||
var listForm = document.listForm ;
|
var listForm = document.listForm ;
|
||||||
listForm.action = "<c:url value='/kccadr/oprtn/tngrVisitEdu/eduRsltExcelDownLoad.do'/>";
|
listForm.action = "<c:url value='/kccadr/oprtn/tngrVisitEdu/eduRsltExcelDownLoad.do'/>";
|
||||||
|
|||||||
@ -65,7 +65,7 @@
|
|||||||
form.submit();
|
form.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'){
|
||||||
@ -80,7 +80,21 @@
|
|||||||
$(this).val('');
|
$(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('');
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<title>강사활동확인서신청관리</title>
|
<title>강사활동확인서신청관리</title>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user