-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-73961] Extract event handlers in BuildPipelineView/bpp.jelly
#144
base: master
Are you sure you want to change the base?
Conversation
...main/resources/au/com/centrumsystems/hudson/plugin/buildpipeline/BuildPipelineView/bpp.jelly
Outdated
Show resolved
Hide resolved
@@ -62,13 +63,14 @@ | |||
<j:if test="${hasBuildPermission}"> | |||
<div class="icon-container"> | |||
<j:if test="${from.isProjectParameterized()}"> | |||
<span class="pointer" onclick="buildPipeline.fillDialog('${app.rootUrl}${from.gridBuilder.firstJobLink}/build?delay=0sec', 'Starts the pipeline with parameters')"> | |||
<span class="bpp-trigger-pipeline-parameterized-params" data-fill-dialog-href="${app.rootUrl}${from.gridBuilder.firstJobLink}/build?delay=0sec" data-fill-dialog-title="Starts the pipeline with parameters" style="display: none" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the need for a different element to hold the data attributes? Is it not simpler to put them on the element on the next line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it - I made the changed and tested that it is working. I'll note all things things for future PR to avoid bloating the DOM.
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
.../au/com/centrumsystems/hudson/plugin/buildpipeline/BuildPipelineView/bpp-trigger-pipeline.js
Outdated
Show resolved
Hide resolved
…peline/BuildPipelineView/bpp-trigger-pipeline.js Co-authored-by: Yaroslav <[email protected]>
JENKINS-73961
Manually tested and is working correctly.
Testing done
BEFORE CHANGES
AFTER CHANGES
Submitter checklist