Problem/Motivation

Replace jQuery usage with vanilla js.

jQuery will be (hopefully) removed from core at some point. Our needed js is simple enough to be just vanilla js and avoid an extra dependency.

Proposed resolution

Replace jQuery usage with vanilla js.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

Issue fork diff-3589451

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

idebr created an issue. See original summary.

acbramley’s picture

As part of this we should refactor this javascript to be less if/elsey. We should be able to use classList.toggle()

tom konda made their first commit to this issue’s fork.

tom konda’s picture

Status: Active » Needs review
acbramley’s picture

Status: Needs review » Fixed

made some minor changes otherwise works well, thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • acbramley committed 1e25fd0c on 2.x authored by tom konda
    task: #3589451 Replace jQuery usage with vanilla js
    
    By: acbramley
    By:...