From 21d1b57a80cf9ae632c39d7e0b97bf6dd33739bf Mon Sep 17 00:00:00 2001 From: "xueli.xue" Date: Fri, 9 Sep 2016 17:07:07 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BB=BB=E5=8A=A1=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=97=B6,=E4=BB=BB=E5=8A=A1=E5=88=97=E8=A1=A8=E5=81=8F?= =?UTF-8?q?=E7=A7=BB=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D;=202=E3=80=81?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=88=A0=E9=99=A4=E6=97=B6,=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=88=97=E8=A1=A8=E5=81=8F=E7=A7=BB=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D;=20=E5=8E=9F=E5=9B=A0:confirm=E5=92=8Calert?= =?UTF-8?q?=E5=BC=B9=E6=A1=86=E5=86=B2=E7=AA=81=E5=AF=BC=E8=87=B4;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/webapp/static/js/jobinfo.index.1.js | 12 +++++++----- .../src/main/webapp/static/js/xxl.alert.1.js | 6 ++++-- 2 files changed, 11 insertions(+), 7 deletions(-) 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 83bf69d2..cd4a6ae3 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 @@ -286,11 +286,13 @@ $(function() { submitHandler : function(form) { $.post(base_url + "/jobinfo/add", $("#addModal .form").serialize(), function(data, status) { if (data.code == "200") { - ComAlert.show(1, "新增任务成功", function(){ - //window.location.reload(); - $('#addModal').modal('hide'); - jobTable.fnDraw(); - }); + $('#addModal').modal('hide'); + setTimeout(function () { + ComAlert.show(1, "新增任务成功", function(){ + jobTable.fnDraw(); + //window.location.reload(); + }); + }, 315); } else { if (data.msg) { ComAlert.show(2, data.msg); diff --git a/xxl-job-admin/src/main/webapp/static/js/xxl.alert.1.js b/xxl-job-admin/src/main/webapp/static/js/xxl.alert.1.js index 5c12e2b2..0c1e95e8 100644 --- a/xxl-job-admin/src/main/webapp/static/js/xxl.alert.1.js +++ b/xxl-job-admin/src/main/webapp/static/js/xxl.alert.1.js @@ -83,8 +83,10 @@ var ComConfirm = { $('#ComConfirm .ok').click(function(){ $('#ComConfirm').modal('hide'); if(typeof callback == 'function') { - callback(); - return; + setTimeout(function(){ + callback(); + return; + }, 315); } });