Skip to content

Commit

Permalink
simplify proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomomdahan committed Nov 5, 2024
1 parent ccdfa1d commit f493512
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</j:choose>
<st:adjunct includes="au.com.centrumsystems.hudson.plugin.buildpipeline.extension.PipelineHeaderExtension.pipeline-column-headers"/>
<st:bind value="${project}" var="projectProxy${project.getId()}"/>
<span class="ch-project-data-holder" data-project-id="${project.getId()}" data-proxy-name="projectProxy${project.getId()}" data-project-json="${project.asJSON()}" style="display:none"/>
<span class="ch-project-data-holder" data-project-id="${project.getId()}" data-project-json="${project.asJSON()}" style="display:none"/>
<j:if test="${(y + 1 != buildPipelineForm.getGridWidth())}">
<td class="next">
<!-- Changing length to size() to get rid of arrows when there are no more child jobs.-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ window.addEventListener("DOMContentLoaded", () => {
const projectDataHolders = document.querySelectorAll(".ch-project-data-holder");

projectDataHolders.forEach(dataHolder => {
const { projectId, proxyName, projectJson } = dataHolder.dataset;
const { projectId, projectJson } = dataHolder.dataset;

buildPipeline.projectProxies[projectId] = window[proxyName];
buildPipeline.projectProxies[projectId] = window["projectProxy" + projectId];

const projectElement = document.getElementById("project-" + projectId);
const projectData = JSON.parse(projectJson);
Expand Down

0 comments on commit f493512

Please sign in to comment.