Explorar el Código

기획전 템플릿,비회원 체크박스 오류수정

jmh hace 4 años
padre
commit
b728603e1d

+ 4 - 4
src/main/webapp/WEB-INF/views/marketing/PlanDetailPopupForm.html

@@ -948,8 +948,8 @@
 			$('.custJoinDateTr').css('display' , 'none');
 			$('#custJoinStdt').attr('required' , false);
 			$('#custJoinEddt').attr('required' , false);
-			$('#nonCust').prop('checked', true);
-			$('#nonCust').removeAttr('disabled');
+			//$('#nonCust').prop('checked', true);
+			//$('#nonCust').removeAttr('disabled');
 		}
 		
 		if(planInfo.replyLoc == "D"){
@@ -1765,8 +1765,8 @@
 				 $('#nonCust').prop('checked', false);
 				 $('#nonCust').attr('disabled','disabled');
 			 }else{
-			 	 $('#nonCust').prop('checked', true);
-				 $('#nonCust').removeAttr('disabled');
+			 	 //$('#nonCust').prop('checked', true);
+				 //$('#nonCust').removeAttr('disabled');
 			 }
 			 
 			 if(planCateList.length > 0){

+ 18 - 0
src/main/webapp/WEB-INF/views/marketing/PlanTemplatePopupForm.html

@@ -2082,6 +2082,9 @@ $(document).ready(function() {
 				
 				if (reviewList[0].dispYn == 'Y') {
 					$('#planTemplateForm input:checkbox[name="reDispYn"]').prop('checked', true);
+				}else{
+					$('#planTemplateForm input:checkbox[name="reDispYn"]').prop('checked', false);
+					$('#planTemplateForm input:checkbox[name="reDispYn"]').val("N");
 				}
 				
 				if(typeof reviewList[0].reItemVal != 'undefined' && reviewList[0].reItemVal != null){
@@ -2097,6 +2100,9 @@ $(document).ready(function() {
 				$('#planTemplateForm input[name=cuPlanContSq]').val(couponNotice.planContSq);
 				if (couponNotice.dispYn == 'Y') {
 					$('#planTemplateForm input:checkbox[name="cuDispYn"]').prop('checked', true);
+				}else{
+					$('#planTemplateForm input:checkbox[name="cuDispYn"]').prop('checked', false);
+					$('#planTemplateForm input:checkbox[name="cuDispYn"]').val("N");
 				}
 				if (couponNotice.cpnNote0 != null && couponNotice.cpnNote0 != '') {
 					$("#planTemplateForm select[name=couponCnt]").val(1);
@@ -2166,6 +2172,9 @@ $(document).ready(function() {
 				
 				if (fileList[0].dispYn == 'Y') {
 					$('#planTemplateForm input:checkbox[name="fileDispYn"]').prop('checked', true);
+				}else{
+					$('#planTemplateForm input:checkbox[name="fileDispYn"]').prop('checked', false);
+					$('#planTemplateForm input:checkbox[name="fileDispYn"]').val("N");
 				}
 				
 				if(fileList.length > 0 && fileList[0].fileItemVal != null)
@@ -2193,6 +2202,9 @@ $(document).ready(function() {
 				
 				if (noticeList[0].dispYn == 'Y') {
 					$('#planTemplateForm input:checkbox[name="noticeDispYn"]').prop('checked', true);
+				}else{
+					$('#planTemplateForm input:checkbox[name="noticeDispYn"]').prop('checked', false);
+					$('#planTemplateForm input:checkbox[name="noticeDispYn"]').val("N");
 				}
 				
 				if(noticeList.length > 0 && noticeList[0].noticeItemVal != null)
@@ -2212,6 +2224,9 @@ $(document).ready(function() {
 				
 				if (fsrcListBtm[0].dispYn == 'Y') {
 					$('#planTemplateForm input:checkbox[name="btmFsrcDispYn"]').prop('checked', true);
+				}else{
+					$('#planTemplateForm input:checkbox[name="btmFsrcDispYn"]').prop('checked', false);
+					$('#planTemplateForm input:checkbox[name="btmFsrcDispYn"]').val("N");
 				}
 			
 				$('#fsrcPcBtm').summernote('code', fsrcListBtm[0].fsrcPc);
@@ -2226,6 +2241,9 @@ $(document).ready(function() {
 				
 				if (fsrcListTop[0].dispYn == 'Y') {
 					$('#planTemplateForm input:checkbox[name="topFsrcDispYn"]').prop('checked', true);
+				}else{
+					$('#planTemplateForm input:checkbox[name="topFsrcDispYn"]').prop('checked', false);
+					$('#planTemplateForm input:checkbox[name="topFsrcDispYn"]').val("N");
 				}
 			
 				$('#fsrcPcTop').summernote('code', fsrcListTop[0].fsrcPc);