Browse Source

单选多选设置其它选项时,输入框未即时显示出来。

keyuan 4 years ago
parent
commit
73966a730b
1 changed files with 7 additions and 2 deletions
  1. 7 2
      src/main/webapp/js/dw/dwsurvey-design.js

+ 7 - 2
src/main/webapp/js/dw/dwsurvey-design.js

@@ -523,14 +523,19 @@ $(document).ready(function(){
 		}
 		if(quOption_isNote.prop("checked")){
 			isNote.val(1);
+			if(!quOptionParent.find(".optionInpText")[0]){
+				$(dwDialogObj).after("<input type='text' class='optionInpText' />");
+			}
+			quOptionParent.find(".optionInpText").show();
 		}else{
 			isNote.val(0);
+			quOptionParent.find(".optionInpText").hide();
 		}
 		checkType.val("NO");
 		isRequiredFill.val(0);
 		//显示填空框
-		//$(dwDialogObj).after("<input type='text' class='optionInpText' />");
-		quOptionParent.find(".optionInpText").show();
+		// $(dwDialogObj).after("<input type='text' class='optionInpText' />");
+		// quOptionParent.find(".optionInpText").show();
 
 		$("#modelUIDialog").dialog("close");
 		//resetQuItemHover(null);