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

refactor: remove JQuery from parts of Search JS #2970

Merged
merged 2 commits into from
Aug 11, 2023

Conversation

Konafets
Copy link
Contributor

@Konafets Konafets commented Aug 2, 2023

Towards achieving #1402

@netlify
Copy link

netlify bot commented Aug 2, 2023

Deploy Preview for hugo-portfolio-theme canceled.

Name Link
🔨 Latest commit b5aa213
🔍 Latest deploy log https://app.netlify.com/sites/hugo-portfolio-theme/deploys/64d6766aa77a67000805b6cc

@netlify
Copy link

netlify bot commented Aug 2, 2023

Deploy Preview for academic-demo canceled.

Name Link
🔨 Latest commit b5aa213
🔍 Latest deploy log https://app.netlify.com/sites/academic-demo/deploys/64d6766a1ab4e10008bd84c6

@netlify
Copy link

netlify bot commented Aug 2, 2023

Deploy Preview for markdown-slides canceled.

Name Link
🔨 Latest commit b5aa213
🔍 Latest deploy log https://app.netlify.com/sites/markdown-slides/deploys/64d6766a0a99360008a2ca7f

@Konafets Konafets changed the title Remove jquery Remove some low hanging JQuery fruits Aug 2, 2023
document.querySelector('#TableOfContents').classList.add('nav flex-column');
}
if (document.querySelector('#TableOfContents li')) {
document.querySelector('#TableOfContents li').classList.add('nav-item');
Copy link
Collaborator

Choose a reason for hiding this comment

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

There can be multiple <li>, so surely this requires a foreach statement?

Similar feedback applies to the other instances where the query selector matches multiple elements.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Have you tested all these changes?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@Konafets I see you have pushed some more changes but have not responded to the above comments yet?

Do the new commits fix all the issues and have you now tested that the PR works?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi,

yes after your question I get back and tested all changes successfully. This means, multiple tables are handled correctly, the table of content and the checkboxes get the bullets removed. From my tests, it works like it did before.

@Konafets Konafets force-pushed the remove_jquery branch 2 times, most recently from bc6ff79 to 02083a9 Compare August 3, 2023 09:08
modules/wowchemy/assets/js/wowchemy.js Outdated Show resolved Hide resolved
@gcushen gcushen merged commit f2a7bd1 into HugoBlox:main Aug 11, 2023
19 checks passed
@gcushen gcushen changed the title Remove some low hanging JQuery fruits refactor: remove JQuery from parts of Search JS Aug 11, 2023
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