From 3fd5b2ee55b8578207ed0fce906e72f12af0ca43 Mon Sep 17 00:00:00 2001 From: ouqiang Date: Sat, 9 Dec 2017 10:16:30 +0800 Subject: [PATCH] =?UTF-8?q?feat($task):=20=E5=88=A0=E9=99=A4=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=BC=B9=E5=87=BA=E7=A1=AE=E8=AE=A4=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close #28 --- .gitignore | 1 + templates/task/index.html | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a3ce3a2..e58329e 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,7 @@ _testmain.go *.test *.prof +.DS_Store .idea log/* data/* diff --git a/templates/task/index.html b/templates/task/index.html index 46bbe7b..8c12c77 100644 --- a/templates/task/index.html +++ b/templates/task/index.html @@ -211,7 +211,12 @@ } function remove(id, stopReload) { - util.post('/task/remove/' + id, {}, function () { + var url = '/task/remove/' + id; + if (stopReload === undefined) { + util.removeConfirm(url); + return; + } + util.post(url, {}, function () { if (stopReload === undefined) { location.reload(); }