MCPcopy
hub / github.com/alseambusher/crontab-ui / deleteJob

Function deleteJob

public/js/script.js:51–57  ·  view source on GitHub ↗
(_id)

Source from the content-addressed store, hash-verified

49var job_command = '';
50
51function deleteJob(_id) {
52 messageBox('<p> Do you want to delete this Job? </p>', 'Confirm delete', null, null, function() {
53 $.post(routes.remove, {_id: _id}, function() {
54 location.reload();
55 });
56 });
57}
58
59function stopJob(_id) {
60 messageBox('<p> Do you want to stop this Job? </p>', 'Confirm stop job', null, null, function() {

Callers

nothing calls this directly

Calls 1

messageBoxFunction · 0.85

Tested by

no test coverage detected