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

Function setCrontab

public/js/script.js:83–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81}
82
83function setCrontab() {
84 messageBox('<p> Do you want to set the crontab file? </p>', 'Confirm crontab setup', null, null, function() {
85 $.get(routes.crontab, { 'env_vars': $('#env_vars').val() }, function() {
86 infoMessageBox('Successfully set crontab file!', 'Information');
87 location.reload();
88 }).fail(function(response) {
89 errorMessageBox(response.statusText);
90 });
91 });
92}
93
94function getCrontab() {
95 messageBox(

Callers

nothing calls this directly

Calls 4

messageBoxFunction · 0.85
infoMessageBoxFunction · 0.85
errorMessageBoxFunction · 0.85
$Function · 0.70

Tested by

no test coverage detected