From 3ff35766b899cb424b1c5bdf20f5ea124ca921bd Mon Sep 17 00:00:00 2001 From: xuxueli <931591021@qq.com> Date: Sat, 18 Aug 2018 20:55:14 +0800 Subject: [PATCH] fix js --- .../src/main/webapp/static/js/jobinfo.index.1.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js b/xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js index ef1bc6c3..8f9f02be 100644 --- a/xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js +++ b/xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js @@ -307,6 +307,12 @@ $(function() { executorTimeout = 0; } $("#addModal .form input[name='executorTimeout']").val(executorTimeout); + var executorFailRetryCount = $("#addModal .form input[name='executorFailRetryCount']").val(); + if(!/^\d+$/.test(executorFailRetryCount)) { + executorFailRetryCount = 0; + } + $("#addModal .form input[name='executorFailRetryCount']").val(executorFailRetryCount); + $.post(base_url + "/jobinfo/add", $("#addModal .form").serialize(), function(data, status) { if (data.code == "200") { @@ -456,6 +462,11 @@ $(function() { executorTimeout = 0; } $("#updateModal .form input[name='executorTimeout']").val(executorTimeout); + var executorFailRetryCount = $("#updateModal .form input[name='executorFailRetryCount']").val(); + if(!/^\d+$/.test(executorFailRetryCount)) { + executorFailRetryCount = 0; + } + $("#updateModal .form input[name='executorFailRetryCount']").val(executorFailRetryCount); // post $.post(base_url + "/jobinfo/update", $("#updateModal .form").serialize(), function(data, status) {