Skip to content
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

remove dead yui code #276

Merged
merged 1 commit into from
Jul 26, 2024
Merged

remove dead yui code #276

merged 1 commit into from
Jul 26, 2024

Conversation

mawinter69
Copy link
Contributor

since longer time the repeatable delete is no longer a button created by yui but directly rendered by Jenkins core as button element So the call to YAHOO.widget.Button.getButton(e.id) will always return undefined. The layoutUpdateCallback will make sure that when the delete button is clicked the traitSectionRule is called.

Testing done

Manual testing

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

since longer time the repeatable delete is no longer a button created by
yui but directly converted by Jenkins core to button element with class
jenkins-button. So the call to YAHOO.widget.Button.getButton(e.id) will
always return undefined. The layoutUpdateCallback will make sure that
when the delete button is clicked the traitSectionRule is called.
@mawinter69 mawinter69 requested a review from a team as a code owner July 26, 2024 20:46
Copy link
Member

@jglick jglick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to configure a multibranch project with this PR and add and delete traits.

@jglick jglick added this pull request to the merge queue Jul 26, 2024
Merged via the queue into jenkinsci:master with commit 778d637 Jul 26, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants