From cfae875a09d00e0eca79747ca3853f865bd066c0 Mon Sep 17 00:00:00 2001 From: shlomomdahan <64103471+shlomomdahan@users.noreply.github.com> Date: Fri, 8 Nov 2024 15:45:26 -0500 Subject: [PATCH] remove redundant span, add attributes to trigger span --- .../buildpipeline/BuildPipelineView/bpp-trigger-pipeline.js | 5 ++--- .../hudson/plugin/buildpipeline/BuildPipelineView/bpp.jelly | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/BuildPipelineView/bpp-trigger-pipeline.js b/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/BuildPipelineView/bpp-trigger-pipeline.js index 97580dab..16dbaa11 100644 --- a/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/BuildPipelineView/bpp-trigger-pipeline.js +++ b/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/BuildPipelineView/bpp-trigger-pipeline.js @@ -1,8 +1,7 @@ Behaviour.specify(".bpp-trigger-pipeline-parameterized", 'BuildPipelineView.TriggerPipelineParameterized', 0, function(element) { element.addEventListener('click', function() { - const paramsElement = document.querySelector('.bpp-trigger-pipeline-parameterized-params'); - const href = paramsElement.dataset.fillDialogHref; - const title = paramsElement.dataset.fillDialogTitle; + const href = element.dataset.fillDialogHref; + const title = element.dataset.fillDialogTitle; buildPipeline.fillDialog(href, title); }); }); diff --git a/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/BuildPipelineView/bpp.jelly b/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/BuildPipelineView/bpp.jelly index 3e5a7479..6ab50783 100644 --- a/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/BuildPipelineView/bpp.jelly +++ b/src/main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/BuildPipelineView/bpp.jelly @@ -63,8 +63,7 @@
-