Merge branch 'advc' of http://yongjoon.cho@vcs.iten.co.kr:9999/hylee/offedu into advc
This commit is contained in:
commit
ecd6e25d90
@ -167,19 +167,15 @@
|
|||||||
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 chkSendSms(){
|
function chkSendSms(){
|
||||||
var chkLen = $(listForm).find("input[name=chk]:checked").length;
|
var chkLen = $(listForm).find("input[name=chk]:checked").length;
|
||||||
|
|||||||
@ -341,9 +341,15 @@
|
|||||||
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(){
|
||||||
$(this).val('');
|
console.log($(this))
|
||||||
});
|
if ($(this).prop("tagName") == 'SELECT') {
|
||||||
}
|
// 초기화 시 무조건 select option 첫번째 지정
|
||||||
|
$(this).find("option:first-child").prop("selected",true)
|
||||||
|
} else {
|
||||||
|
$(this).val('');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function insertNoty(eduAplctOrd, eduChasiOrd, notifyCn, notifyPath, toUserId, lctrDivCd){
|
function insertNoty(eduAplctOrd, eduChasiOrd, notifyCn, notifyPath, toUserId, lctrDivCd){
|
||||||
|
|
||||||
|
|||||||
@ -73,19 +73,15 @@
|
|||||||
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('');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<title>강사신청 관리</title>
|
<title>강사신청 관리</title>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@ -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>
|
</script>
|
||||||
<title>과정신청기간관리목록</title>
|
<title>과정신청기간관리목록</title>
|
||||||
|
|||||||
@ -181,26 +181,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//초기화
|
//초기화
|
||||||
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') {
|
||||||
if ($(this).attr('name').indexOf('Month') != -1) {
|
// 초기화 시 무조건 select option 첫번째 지정
|
||||||
$(this).val(new Date().getMonth() + 1);
|
$(this).find("option:first-child").prop("selected",true);
|
||||||
} else if ($(this).attr('name').indexOf('Year') != -1) {
|
} else if ($(this).attr('type') == 'radio') {
|
||||||
$(this).val(new Date().getFullYear());
|
var radioName = $(this).attr("name");
|
||||||
} else {
|
var radioFirst = $("[name="+radioName+"]")[0];
|
||||||
$(this).prop("selectedIndex", 0);
|
$(radioFirst).prop("checked",true)
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if ($(this).attr('type') == 'checkbox') {
|
$(this).val('');
|
||||||
$(this).prop('checked', false);
|
|
||||||
} else {
|
|
||||||
$(this).val('');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<title>과정신청기간관리목록</title>
|
<title>과정신청기간관리목록</title>
|
||||||
|
|||||||
@ -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>
|
</script>
|
||||||
<title>교육과정관리</title>
|
<title>교육과정관리</title>
|
||||||
|
|||||||
@ -100,7 +100,22 @@
|
|||||||
event.stopImmediatePropagation();
|
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>
|
</script>
|
||||||
<title>교육문의</title>
|
<title>교육문의</title>
|
||||||
|
|||||||
@ -168,27 +168,22 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
//초기화
|
||||||
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') {
|
||||||
if ($(this).attr('name').indexOf('Month') != -1) {
|
// 초기화 시 무조건 select option 첫번째 지정
|
||||||
$(this).val(new Date().getMonth() + 1);
|
$(this).find("option:first-child").prop("selected",true);
|
||||||
} else if ($(this).attr('name').indexOf('Year') != -1) {
|
} else if ($(this).attr('type') == 'radio') {
|
||||||
$(this).val(new Date().getFullYear());
|
var radioName = $(this).attr("name");
|
||||||
} else {
|
var radioFirst = $("[name="+radioName+"]")[0];
|
||||||
$(this).prop("selectedIndex", 0);
|
$(radioFirst).prop("checked",true)
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if ($(this).attr('type') == 'checkbox') {
|
$(this).val('');
|
||||||
$(this).prop('checked', false);
|
|
||||||
} else {
|
|
||||||
$(this).val('');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<title>과정신청기간관리목록</title>
|
<title>과정신청기간관리목록</title>
|
||||||
|
|||||||
@ -170,26 +170,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//초기화
|
//초기화
|
||||||
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') {
|
||||||
if ($(this).attr('name').indexOf('Month') != -1) {
|
// 초기화 시 무조건 select option 첫번째 지정
|
||||||
$(this).val(new Date().getMonth() + 1);
|
$(this).find("option:first-child").prop("selected",true);
|
||||||
} else if ($(this).attr('name').indexOf('Year') != -1) {
|
} else if ($(this).attr('type') == 'radio') {
|
||||||
$(this).val(new Date().getFullYear());
|
var radioName = $(this).attr("name");
|
||||||
} else {
|
var radioFirst = $("[name="+radioName+"]")[0];
|
||||||
$(this).prop("selectedIndex", 0);
|
$(radioFirst).prop("checked",true)
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if ($(this).attr('type') == 'checkbox') {
|
$(this).val('');
|
||||||
$(this).prop('checked', false);
|
|
||||||
} else {
|
|
||||||
$(this).val('');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
//강사료 팝업
|
//강사료 팝업
|
||||||
function fncInstrCostInfo(eduAplctOrd,eduChasiOrd) {
|
function fncInstrCostInfo(eduAplctOrd,eduChasiOrd) {
|
||||||
|
|||||||
@ -217,7 +217,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') {
|
||||||
@ -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){
|
function showMemo(obj){
|
||||||
if($(obj).is(".on") == true){
|
if($(obj).is(".on") == true){
|
||||||
|
|||||||
@ -163,26 +163,18 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
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 {
|
|
||||||
$(this).prop("selectedIndex", 0);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if ($(this).attr('type') == 'checkbox') {
|
$(this).val('');
|
||||||
$(this).prop('checked', false);
|
|
||||||
} else {
|
|
||||||
$(this).val('');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
//강사료 팝업
|
//강사료 팝업
|
||||||
function fncInstrCostInfo(eduAplctOrd,eduChasiOrd) {
|
function fncInstrCostInfo(eduAplctOrd,eduChasiOrd) {
|
||||||
|
|||||||
@ -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>
|
</script>
|
||||||
<title>과정신청기간관리목록</title>
|
<title>과정신청기간관리목록</title>
|
||||||
</head>
|
</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>
|
</script>
|
||||||
<title>과정신청기간관리목록</title>
|
<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>
|
</script>
|
||||||
<title>교육과정관리</title>
|
<title>교육과정관리</title>
|
||||||
</head>
|
</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>
|
</script>
|
||||||
<title>교육문의</title>
|
<title>교육문의</title>
|
||||||
|
|||||||
@ -163,26 +163,18 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
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 {
|
|
||||||
$(this).prop("selectedIndex", 0);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if ($(this).attr('type') == 'checkbox') {
|
$(this).val('');
|
||||||
$(this).prop('checked', false);
|
|
||||||
} else {
|
|
||||||
$(this).val('');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<title>과정신청기간관리목록</title>
|
<title>과정신청기간관리목록</title>
|
||||||
|
|||||||
@ -51,19 +51,15 @@
|
|||||||
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('');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<title>신청관리</title>
|
<title>신청관리</title>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@ -49,19 +49,15 @@
|
|||||||
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 linkPage(pageNo){
|
function linkPage(pageNo){
|
||||||
var listForm = document.listForm ;
|
var listForm = document.listForm ;
|
||||||
|
|||||||
@ -167,19 +167,15 @@
|
|||||||
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 chkSendSms(){
|
function chkSendSms(){
|
||||||
var chkLen = $(listForm).find("input[name=chk]:checked").length;
|
var chkLen = $(listForm).find("input[name=chk]:checked").length;
|
||||||
|
|||||||
@ -245,20 +245,15 @@
|
|||||||
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 ;
|
||||||
|
|||||||
@ -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