You've already forked crontab-ui
mirror of
https://github.com/alseambusher/crontab-ui.git
synced 2025-12-18 11:53:57 +08:00
Adding import from crontab
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user