diff --git a/xxl-job-admin/src/main/resources/static/js/jobinfo.index.1.js b/xxl-job-admin/src/main/resources/static/js/jobinfo.index.1.js index e4b3e57dd434c67539d97018efbaaca2d46a5707..3d0e0e179172d25a8990b172be1bc34fff75f46a 100644 --- a/xxl-job-admin/src/main/resources/static/js/jobinfo.index.1.js +++ b/xxl-job-admin/src/main/resources/static/js/jobinfo.index.1.js @@ -318,7 +318,7 @@ $(function() { // add $(".add").click(function(){ - // init + // init-cronGen $("#addModal .form input[name='jobCron']").cronGen({}); $('#addModal').modal({backdrop: false, keyboard: false}).modal('show'); @@ -412,13 +412,14 @@ $(function() { } }); $("#addModal").on('hide.bs.modal', function () { + addModalValidate.resetForm(); $("#addModal .form")[0].reset(); - addModalValidate.resetForm(); - // 清理 cronGen - $("input[name=jobCron]").show().siblings().remove(); $("#addModal .form .form-group").removeClass("has-error"); $(".remote_panel").show(); // remote + // remove-cronGen + $("input[name=jobCron]").show().siblings().remove(); + $("#addModal .form input[name='executorHandler']").removeAttr("readonly"); }); @@ -480,7 +481,7 @@ $(function() { $("#updateModal .form select[name=glueType]").change(); - // init + // init-cronGen $("#updateModal .form input[name='jobCron']").cronGen({}); // show @@ -576,8 +577,11 @@ $(function() { } }); $("#updateModal").on('hide.bs.modal', function () { - $("#updateModal .form")[0].reset(); - // 清理 cronGen + updateModalValidate.resetForm(); + $("#updateModal .form")[0].reset(); + $("#updateModal .form .form-group").removeClass("has-error"); + + // remove-cronGen $("input[name=jobCron]").show().siblings().remove(); });