You've already forked crontab-ui
mirror of
https://github.com/alseambusher/crontab-ui.git
synced 2025-12-15 11:43:58 +08:00
1. fixed commands with quotes bug
2. Changed Startup macro from @startup to @reboot
This commit is contained in:
@@ -11,8 +11,7 @@
|
||||
$(function () {
|
||||
// initialize tooltips
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
// TODO handle the commands with quotes
|
||||
crontabs = JSON.parse('<%- crontabs %>');
|
||||
crontabs = JSON.parse('<%- crontabs.replace(/\\\"/g,"\\\\\"") %>');
|
||||
routes = JSON.parse('<%- routes %>');
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
<label>Command</label>
|
||||
<input type='text' class='form-control' id='job-command' onkeyup="job_command = $(this).val(); job_string();"/><br />
|
||||
<label>Quick Schedule</label><br />
|
||||
<a class="btn btn-primary" onclick="schedule = '@startup'; job_string();">Startup</a>
|
||||
<a class="btn btn-primary" onclick="schedule = '@reboot'; job_string();">Startup</a>
|
||||
<a class="btn btn-primary" onclick="schedule = '@hourly'; job_string();">Hourly</a>
|
||||
<a class="btn btn-primary" onclick="schedule = '@daily'; job_string();">Daily</a>
|
||||
<a class="btn btn-primary" onclick="schedule = '@monthly'; job_string();">Monthly</a>
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
$(function () {
|
||||
// initialize tooltips
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
// TODO handle the commands with quotes
|
||||
crontabs = JSON.parse('<%- crontabs %>');
|
||||
crontabs = JSON.parse('<%- crontabs.replace(/\\\"/g,"\\\\\"") %>');
|
||||
routes = JSON.parse('<%- routes %>');
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user