mirror of https://github.com/ouqiang/gocron
parent
e9b475a230
commit
3fd5b2ee55
|
@ -23,6 +23,7 @@ _testmain.go
|
||||||
*.test
|
*.test
|
||||||
*.prof
|
*.prof
|
||||||
|
|
||||||
|
.DS_Store
|
||||||
.idea
|
.idea
|
||||||
log/*
|
log/*
|
||||||
data/*
|
data/*
|
||||||
|
|
|
@ -211,7 +211,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function remove(id, stopReload) {
|
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) {
|
if (stopReload === undefined) {
|
||||||
location.reload();
|
location.reload();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue