Skip to content

Commit

Permalink
remove code syntax error in the admin process scheduling js code
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Jul 29, 2023
1 parent fff2549 commit 48e2a12
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions app/assets/javascripts/bp_admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1249,22 +1249,21 @@ jQuery(".admin.index").ready(function() {
// PROCESS SCHEDULING
//==============================================================

jQuery("#process-scheduling .job-schedule").each(function() { renderSchedule(this) });
jQuery("#process-scheduling .job-schedule").each(function () {
renderSchedule(this)
});

jQuery(".show-scheduler-log").on("click", function(event) {
jQuery(".show-scheduler-log").on("click", function (event) {
let jobName = event.target.dataset.jobName;

if (jobName) {
window.open(
BP_CONFIG.rest_url + "/admin/scheduled_jobs/" + encodeURIComponent(jobName) + "/log?apikey=" + BP_CONFIG.apikey + "&userapikey=" + BP_CONFIG.userapikey,
"_blank");
window.open(
BP_CONFIG.rest_url + "/admin/scheduled_jobs/" + encodeURIComponent(jobName) + "/log?apikey=" + BP_CONFIG.apikey + "&userapikey=" + BP_CONFIG.userapikey,
"_blank");
} else {
window.open(
BP_CONFIG.rest_url + "/admin/scheduled_jobs/log?apikey=" + BP_CONFIG.apikey + "&userapikey=" + BP_CONFIG.userapikey,
"_blank");
window.open(
BP_CONFIG.rest_url + "/admin/scheduled_jobs/log?apikey=" + BP_CONFIG.apikey + "&userapikey=" + BP_CONFIG.userapikey,
"_blank");
}
})

});

function renderSchedule(scheduleElement) {
Expand Down

0 comments on commit 48e2a12

Please sign in to comment.