Skip to content

Remove jquery #1085

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

Merged
merged 16 commits into from
Sep 6, 2018
Merged

Remove jquery #1085

merged 16 commits into from
Sep 6, 2018

Conversation

xi
Copy link
Contributor

@xi xi commented Sep 5, 2018

This is a full port to vanilla javascript, ditching jquery. Fixes #562.

It uses many modern DOM features such as fetch, classList, or NodeList.forEach. All of them are supported in all major browsers though.

This includes some refactoring which might also fix some bugs (e.g. #605).

I removed the open/close animation. It is probably possible to bring it back, but I did not focus on that yet.

@xi xi mentioned this pull request Sep 5, 2018
xi added 16 commits September 5, 2018 23:08
This is duplicated functionality. You can already toggle the entries
using .djToggleSwitch
AFAIU it is never used because the background-color is always
overwritten by applyStyle
this is already handled in the close.djDebug event listener
already done in close.djDebug handler
NOTE: removes custom event
Note: removes animations
@xi xi changed the title Refactor js 3 Remove jquery Sep 5, 2018
@matthiask matthiask merged commit 47483b4 into django-commons:master Sep 6, 2018
@matthiask
Copy link
Member

Awesome!

@xi
Copy link
Contributor Author

xi commented Sep 6, 2018

That was quick. Thanks!

@xi xi mentioned this pull request Sep 6, 2018
@WhyNotHugo
Copy link
Contributor

The removal of the JQUERY_URL setting doesn't seem to be on the CHANGELOG.

Had a bit of a hard time tracking down what had happened here. Maybe it's still worth updating?

@matthiask
Copy link
Member

@WhyNotHugo Sure! Thanks. I just proposed a documentation change here: #1266

auvipy added a commit that referenced this pull request May 10, 2020
Refs #1085: Mention the removal of JQUERY_URL in the changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should jQuery be a dependency ?
3 participants