Explorar el Código

Merge remote-tracking branch 'origin/develop' into card007

card007 hace 4 años
padre
commit
dd1ce32d91

+ 10 - 1
src/main/webapp/WEB-INF/views/web/callcenter/OneToOneQnaRegisterFormWeb.html

@@ -58,6 +58,7 @@
 										<div class="ui_col_4 form_full"><!-- 210415 변경 : 필드 클래스 (ui_col_10 → ui_col_4) 변경  -->
 											<div class="select_custom">
 												<div class="combo"><!-- 210415 추가 : 텍스트 '필수' -->
+													<input type="hidden" name="counselClsf" id="counselClsf"/>
 													<div class="select">유형을 선택해 주세요 (필수)</div>
 													<ul class="list" id="ulCounselClsf">
 													</ul>
@@ -161,6 +162,8 @@
 	
 	// 문의유형 선택 시
 	var fnChangeCounselClsf = function(counselClsf) {
+		// 선택 문의유형 설정
+		$('#counselClsf').val(counselClsf);
 		var actionUrl = '/callcenter/onetoone/qna/answer/template/' + counselClsf;
 		$.get(actionUrl
 			, function(data) {
@@ -233,10 +236,16 @@
 		// 입력 값 체크
 		if (!gagajf.validation('#qnaForm'))
 			return false;
-		if($('#questContent').val().length<20){
+
+		if ($('#questContent').val().length<20){
 			mcxDialog.alert("문의내용을 20자 이상 입력해주세요.");
 			return;
 		}
+
+		if (gagajf.isNull($('#counselClsf').val())) {
+			mcxDialog.alert("문의유형은 필수 항목입니다.");
+			return;
+		}
 		mcxDialog.confirm("저장하시겠습니까?", {
 			cancelBtnText: "취소",
 			sureBtnText: "확인",