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 8354d598..815c26fe 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 @@ -430,6 +430,8 @@ $(function() { } $("#addModal .form input[name='executorFailRetryCount']").val(executorFailRetryCount); + // process-cronGen + $("#addModal .form input[name='jobCron']").val( $("#addModal .form input[name='cronGen_display']").val() ); $.post(base_url + "/jobinfo/add", $("#addModal .form").serialize(), function(data, status) { if (data.code == "200") { @@ -593,6 +595,9 @@ $(function() { } $("#updateModal .form input[name='executorFailRetryCount']").val(executorFailRetryCount); + // process-cronGen + $("#updateModal .form input[name='jobCron']").val( $("#updateModal .form input[name='cronGen_display']").val() ); + // post $.post(base_url + "/jobinfo/update", $("#updateModal .form").serialize(), function(data, status) { if (data.code == "200") { diff --git a/xxl-job-admin/src/main/resources/static/plugins/cronGen/cronGen.js b/xxl-job-admin/src/main/resources/static/plugins/cronGen/cronGen.js index ba191776..5ec7046d 100755 --- a/xxl-job-admin/src/main/resources/static/plugins/cronGen/cronGen.js +++ b/xxl-job-admin/src/main/resources/static/plugins/cronGen/cronGen.js @@ -331,7 +331,7 @@ // Replace the input with an input group var $g = $("