-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: multiple fixes for cron manager, other fixes
- Loading branch information
Showing
23 changed files
with
124 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
ckan.setSchedule = function (scheduleContainer) { | ||
$(scheduleContainer).val(getSchedule()) | ||
ckan.setCreateSchedule = function (scheduleContainer) { | ||
$(scheduleContainer).val(getSchedule("create")) | ||
} | ||
|
||
ckan.setEditSchedule = function (scheduleContainer) { | ||
$(scheduleContainer).val(getSchedule("edit")) | ||
} | ||
|
||
/** | ||
* Get a cron schedule string | ||
* | ||
* @returns | ||
*/ | ||
function getSchedule() { | ||
const min = $("#job-minute").val() || "*"; | ||
const hour = $("#job-hour").val() || "*"; | ||
const day = $("#job-day").val() || "*"; | ||
const month = $("#job-month").val() || "*"; | ||
const week = $("#job-week").val() || "*"; | ||
function getSchedule(scope) { | ||
const min = $(`#${scope}-job-minute`).val() || "*"; | ||
const hour = $(`#${scope}-job-hour`).val() || "*"; | ||
const day = $(`#${scope}-job-day`).val() || "*"; | ||
const month = $(`#${scope}-job-month`).val() || "*"; | ||
const week = $(`#${scope}-job-week`).val() || "*"; | ||
|
||
return `${min} ${hour} ${day} ${month} ${week}` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.