소스 검색

update document

xuxueli 5 년 전
부모
커밋
c199fd8557
1개의 변경된 파일11개의 추가작업 그리고 7개의 파일을 삭제
  1. 11 7
      xxl-job-admin/src/main/resources/static/js/jobinfo.index.1.js

+ 11 - 7
xxl-job-admin/src/main/resources/static/js/jobinfo.index.1.js 파일 보기

318
 	// add
318
 	// add
319
 	$(".add").click(function(){
319
 	$(".add").click(function(){
320
 
320
 
321
-		// init
321
+		// init-cronGen
322
         $("#addModal .form input[name='jobCron']").cronGen({});
322
         $("#addModal .form input[name='jobCron']").cronGen({});
323
 
323
 
324
 		$('#addModal').modal({backdrop: false, keyboard: false}).modal('show');
324
 		$('#addModal').modal({backdrop: false, keyboard: false}).modal('show');
412
 		}
412
 		}
413
 	});
413
 	});
414
 	$("#addModal").on('hide.bs.modal', function () {
414
 	$("#addModal").on('hide.bs.modal', function () {
415
+        addModalValidate.resetForm();
415
 		$("#addModal .form")[0].reset();
416
 		$("#addModal .form")[0].reset();
416
-		addModalValidate.resetForm();
417
-		// 清理 cronGen
418
-		$("input[name=jobCron]").show().siblings().remove();
419
 		$("#addModal .form .form-group").removeClass("has-error");
417
 		$("#addModal .form .form-group").removeClass("has-error");
420
 		$(".remote_panel").show();	// remote
418
 		$(".remote_panel").show();	// remote
421
 
419
 
420
+        // remove-cronGen
421
+        $("input[name=jobCron]").show().siblings().remove();
422
+
422
 		$("#addModal .form input[name='executorHandler']").removeAttr("readonly");
423
 		$("#addModal .form input[name='executorHandler']").removeAttr("readonly");
423
 	});
424
 	});
424
 
425
 
480
 
481
 
481
         $("#updateModal .form select[name=glueType]").change();
482
         $("#updateModal .form select[name=glueType]").change();
482
 
483
 
483
-        // init
484
+        // init-cronGen
484
         $("#updateModal .form input[name='jobCron']").cronGen({});
485
         $("#updateModal .form input[name='jobCron']").cronGen({});
485
 
486
 
486
 		// show
487
 		// show
576
 		}
577
 		}
577
 	});
578
 	});
578
 	$("#updateModal").on('hide.bs.modal', function () {
579
 	$("#updateModal").on('hide.bs.modal', function () {
579
-		$("#updateModal .form")[0].reset();
580
-		// 清理 cronGen
580
+        updateModalValidate.resetForm();
581
+        $("#updateModal .form")[0].reset();
582
+        $("#updateModal .form .form-group").removeClass("has-error");
583
+
584
+		// remove-cronGen
581
 		$("input[name=jobCron]").show().siblings().remove();
585
 		$("input[name=jobCron]").show().siblings().remove();
582
 	});
586
 	});
583
 
587