Skip to content

Conversation

@Miodec
Copy link
Member

@Miodec Miodec commented Jan 2, 2026

Also fixes bugs added in #7303

@Miodec Miodec requested a review from Copilot January 2, 2026 18:48
@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label Jan 2, 2026
@github-actions github-actions bot added the waiting for review Pull requests that require a review before continuing label Jan 2, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the simple-modal utility to remove jQuery dependencies, replacing jQuery calls with native DOM utility methods. The changes also fix bugs that were introduced in PR #7303.

Key Changes

  • Replaced jQuery ($) calls with native DOM utilities (qs, qsa, and ElementWithUtils methods)
  • Added a setValue method to ElementsWithUtils class for setting input values across multiple elements
  • Introduced a module-level constant simpleModalEl for cleaner DOM access

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
frontend/src/ts/utils/simple-modal.ts Refactored to replace all jQuery calls with native DOM utilities (qs, qsa) and ElementWithUtils methods, added simpleModalEl constant
frontend/src/ts/utils/dom.ts Added setValue method to ElementsWithUtils class to support setting values on multiple input/textarea elements

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@Leonabcd123 Leonabcd123 left a comment

Choose a reason for hiding this comment

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

LGTM

@Miodec Miodec merged commit a51424a into master Jan 2, 2026
14 checks passed
@Miodec Miodec deleted the simple-modal branch January 2, 2026 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff waiting for review Pull requests that require a review before continuing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants