Adding import from crontab

This commit is contained in:
Michael
2016-08-04 17:49:22 -04:00
committed by alse
parent 78f133a075
commit 285bcd1f25
4 changed files with 40 additions and 9 deletions

View File

@@ -53,6 +53,16 @@ function setCrontab(){
});
}
function getCrontab(){
messageBox("<p> Do you want to get the crontab file? </p>", "Confirm crontab retrieval", null, null, function(){
$.get(routes.import_crontab, { "env_vars": $("#env_vars").val() }, function(){
// TODO show only if success
infoMessageBox("Successfuly got the crontab file!","Information");
location.reload();
});
});
}
function editJob(_id){
var job = null;
crontabs.forEach(function(crontab){