Browse Source

模态框隐藏时,表单错误提示清空;

xueli.xue 9 years ago
parent
commit
261e628919
1 changed files with 3 additions and 1 deletions
  1. 3 1
      xxl-job-admin/src/main/webapp/static/js/job.index.1.js

+ 3 - 1
xxl-job-admin/src/main/webapp/static/js/job.index.1.js

@@ -195,7 +195,9 @@ $(function() {
 		}
 	});
 	$("#addModal").on('hide.bs.modal', function () {
-		$("#addModal .form")[0].reset()
+		//$("#addModal .form")[0].reset();
+		addModalValidate.resetForm();
+		$("#addModal .form .form-group").removeClass("has-error");
 	});
 	
 	// 新增-添加参数