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(); }