KeYuan il y a 8 ans
Parent
commit
8e31569a9b

+ 6 - 1
src/main/webapp/WEB-INF/page/content/diaowen-design/answer-survey-mobile.jsp

@@ -968,7 +968,12 @@ $(document).ready(function(){
 			var isRequired=quItemBody.find(".isRequired").val();
 			
 			var validateStatus=false;
-			
+
+			if(isRequired==="0"){
+				validateStatus = true;
+				return true;
+			}
+
 			if(quType==="RADIO"){
 				validateStatus=quItemBody.find("input[type='radio']:checked")[0];
 			}else if(quType==="CHECKBOX"){

+ 1 - 1
src/main/webapp/WEB-INF/page/content/diaowen-design/answer-survey.jsp

@@ -394,7 +394,7 @@ $(document).ready(function(){
 
 			if(isRequired==="0"){
 				validateStatus = true;
-				return ;
+				return true;
 			}
 
 			if(quType==="RADIO"){