Merge branch 'advc' of http://yongjoon.cho@vcs.iten.co.kr:9999/hylee/offedu into advc
This commit is contained in:
commit
ecd6e25d90
@ -167,14 +167,10 @@
|
||||
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);
|
||||
}
|
||||
console.log($(this))
|
||||
if ($(this).prop("tagName") == 'SELECT') {
|
||||
// 초기화 시 무조건 select option 첫번째 지정
|
||||
$(this).find("option:first-child").prop("selected",true)
|
||||
} else {
|
||||
$(this).val('');
|
||||
}
|
||||
|
||||
@ -341,7 +341,13 @@
|
||||
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('');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -73,14 +73,10 @@
|
||||
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);
|
||||
}
|
||||
console.log($(this))
|
||||
if ($(this).prop("tagName") == 'SELECT') {
|
||||
// 초기화 시 무조건 select option 첫번째 지정
|
||||
$(this).find("option:first-child").prop("selected",true)
|
||||
} else {
|
||||
$(this).val('');
|
||||
}
|
||||
|
||||
@ -168,6 +168,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('');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
<title>과정신청기간관리목록</title>
|
||||
|
||||
@ -184,21 +184,16 @@
|
||||
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 {
|
||||
if ($(this).attr('type') == 'checkbox') {
|
||||
$(this).prop('checked', false);
|
||||
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('');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -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('');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
<title>교육과정관리</title>
|
||||
|
||||
@ -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('');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
<title>교육문의</title>
|
||||
|
||||
@ -168,25 +168,20 @@
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
//초기화
|
||||
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 {
|
||||
if ($(this).attr('type') == 'checkbox') {
|
||||
$(this).prop('checked', false);
|
||||
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('');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -173,21 +173,16 @@
|
||||
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 {
|
||||
if ($(this).attr('type') == 'checkbox') {
|
||||
$(this).prop('checked', false);
|
||||
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('');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -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,6 +236,21 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
}*/
|
||||
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){
|
||||
|
||||
@ -166,21 +166,13 @@
|
||||
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 {
|
||||
if ($(this).attr('type') == 'checkbox') {
|
||||
$(this).prop('checked', false);
|
||||
console.log($(this))
|
||||
if ($(this).prop("tagName") == 'SELECT') {
|
||||
// 초기화 시 무조건 select option 첫번째 지정
|
||||
$(this).find("option:first-child").prop("selected",true)
|
||||
} else {
|
||||
$(this).val('');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -163,6 +163,19 @@
|
||||
|
||||
}
|
||||
|
||||
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>
|
||||
<title>과정신청기간관리목록</title>
|
||||
</head>
|
||||
|
||||
@ -169,7 +169,18 @@
|
||||
|
||||
}
|
||||
|
||||
|
||||
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>
|
||||
<title>과정신청기간관리목록</title>
|
||||
|
||||
@ -138,6 +138,19 @@
|
||||
|
||||
}
|
||||
|
||||
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>
|
||||
<title>교육과정관리</title>
|
||||
</head>
|
||||
|
||||
@ -95,6 +95,18 @@
|
||||
|
||||
} */
|
||||
|
||||
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>
|
||||
<title>교육문의</title>
|
||||
|
||||
@ -166,21 +166,13 @@
|
||||
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 {
|
||||
if ($(this).attr('type') == 'checkbox') {
|
||||
$(this).prop('checked', false);
|
||||
console.log($(this))
|
||||
if ($(this).prop("tagName") == 'SELECT') {
|
||||
// 초기화 시 무조건 select option 첫번째 지정
|
||||
$(this).find("option:first-child").prop("selected",true)
|
||||
} else {
|
||||
$(this).val('');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -51,14 +51,10 @@
|
||||
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);
|
||||
}
|
||||
console.log($(this))
|
||||
if ($(this).prop("tagName") == 'SELECT') {
|
||||
// 초기화 시 무조건 select option 첫번째 지정
|
||||
$(this).find("option:first-child").prop("selected",true)
|
||||
} else {
|
||||
$(this).val('');
|
||||
}
|
||||
|
||||
@ -49,14 +49,10 @@
|
||||
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);
|
||||
}
|
||||
console.log($(this))
|
||||
if ($(this).prop("tagName") == 'SELECT') {
|
||||
// 초기화 시 무조건 select option 첫번째 지정
|
||||
$(this).find("option:first-child").prop("selected",true)
|
||||
} else {
|
||||
$(this).val('');
|
||||
}
|
||||
|
||||
@ -167,14 +167,10 @@
|
||||
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);
|
||||
}
|
||||
console.log($(this))
|
||||
if ($(this).prop("tagName") == 'SELECT') {
|
||||
// 초기화 시 무조건 select option 첫번째 지정
|
||||
$(this).find("option:first-child").prop("selected",true)
|
||||
} else {
|
||||
$(this).val('');
|
||||
}
|
||||
|
||||
@ -245,21 +245,16 @@
|
||||
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);
|
||||
}
|
||||
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 ;
|
||||
listForm.action = "<c:url value='/kccadr/oprtn/tngrVisitEdu/eduRsltExcelDownLoad.do'/>";
|
||||
|
||||
@ -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('');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
<title>강사활동확인서신청관리</title>
|
||||
</head>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user