Skip to content

Commit

Permalink
Merge pull request #3 from kdebisschop/no-graph-with-rundeck-3_2
Browse files Browse the repository at this point in the history
replace _genUrl() with API path from docs
  • Loading branch information
sjrd218 authored Dec 14, 2020
2 parents 99d8026 + 52934e1 commit 6007848
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/main/rdplugin/assets/js/jobgraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ jQuery(function () {

function JobDataLoader() {
var self = this;
var apiBase = window._rundeck.rdBase + '/api/' + window._rundeck.apiVersion;
self.jobdata = {};
self.undefjobs = {};
self.undef = 0;
Expand Down Expand Up @@ -417,28 +418,21 @@ jQuery(function () {

self.load = function (id) {
return jQuery.ajax({
url: _genUrl(appLinks.scheduledExecutionWorkflowJson, {
id: id
}),
url: apiBase + "/job/" + id + "/workflow",
method: 'GET',
contentType: 'json'
// success:function(data){ }
});
};
self.find = function (group, name) {
return jQuery.ajax({
url: _genUrl(appLinks.menuJobsAjax, {
project: project,
jobExactFilter: name,
groupPathExact: group
}),
url: apiBase + "/" + project + "/jobs?jobExactFilter=" + name + "&groupPathExact=" + group,
method: 'GET',
contentType: 'json'
// success:function(data){ }
});
};


}

function loadJobShowPageData() {
Expand Down

0 comments on commit 6007848

Please sign in to comment.