Browse Source

修复Cron可视化查看数据清空问题;

xuxueli 6 years ago
parent
commit
1abe154c40
1 changed files with 2 additions and 6 deletions
  1. 2 6
      xxl-job-admin/src/main/resources/static/js/jobinfo.index.1.js

+ 2 - 6
xxl-job-admin/src/main/resources/static/js/jobinfo.index.1.js View File

362
 	$(".add").click(function(){
362
 	$(".add").click(function(){
363
 
363
 
364
 		// init-cronGen
364
 		// init-cronGen
365
+        $("#addModal .form input[name='jobCron']").show().siblings().remove();
365
         $("#addModal .form input[name='jobCron']").cronGen({});
366
         $("#addModal .form input[name='jobCron']").cronGen({});
366
 
367
 
367
 		$('#addModal').modal({backdrop: false, keyboard: false}).modal('show');
368
 		$('#addModal').modal({backdrop: false, keyboard: false}).modal('show');
460
 		$("#addModal .form .form-group").removeClass("has-error");
461
 		$("#addModal .form .form-group").removeClass("has-error");
461
 		$(".remote_panel").show();	// remote
462
 		$(".remote_panel").show();	// remote
462
 
463
 
463
-        // remove-cronGen
464
-        $("#addModal .form input[name='jobCron']").show().siblings().remove();
465
-
466
 		$("#addModal .form input[name='executorHandler']").removeAttr("readonly");
464
 		$("#addModal .form input[name='executorHandler']").removeAttr("readonly");
467
 	});
465
 	});
468
 
466
 
525
         $("#updateModal .form select[name=glueType]").change();
523
         $("#updateModal .form select[name=glueType]").change();
526
 
524
 
527
         // init-cronGen
525
         // init-cronGen
526
+        $("#updateModal .form input[name='jobCron']").show().siblings().remove();
528
         $("#updateModal .form input[name='jobCron']").cronGen({});
527
         $("#updateModal .form input[name='jobCron']").cronGen({});
529
 
528
 
530
 		// show
529
 		// show
623
         updateModalValidate.resetForm();
622
         updateModalValidate.resetForm();
624
         $("#updateModal .form")[0].reset();
623
         $("#updateModal .form")[0].reset();
625
         $("#updateModal .form .form-group").removeClass("has-error");
624
         $("#updateModal .form .form-group").removeClass("has-error");
626
-
627
-		// remove-cronGen
628
-        $("#updateModal .form input[name='jobCron']").show().siblings().remove();
629
 	});
625
 	});
630
 
626
 
631
     /**
627
     /**