Bläddra i källkod

update document

xuxueli 5 år sedan
förälder
incheckning
c199fd8557
1 ändrade filer med 11 tillägg och 7 borttagningar
  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 Visa fil

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