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

#6629 Replace jQuery "load" with "on" #6630

Merged
merged 1 commit into from
Dec 2, 2020

Conversation

timwentzell
Copy link
Contributor

Replace jQuery(window).load with jQuery(window).on('load', handler)

#6629

Subject

This is a simple PR to replace the deprecated (since jQuery 1.8) and removed (since jQuery 3.0) usage of jQuery.load(handler) with jQuery.on('load', handler).

I am targeting this branch, because I would like our Sonata projects to have better compatibility with newer versions of jQuery.

Closes #6629.

Changelog

### Changed
- Replaced jQuery "load()" with "on()" in Admin.js

Replace jQuery(window).load with jQuery(window).on('load', handler)

sonata-project#6629
@VincentLanglet
Copy link
Member

I would say it's pedantic and don't need a Changelog @sonata-project/contributors ?

@VincentLanglet VincentLanglet requested a review from a team November 26, 2020 19:01
@timwentzell
Copy link
Contributor Author

When could we expect a review of this PR to finish off the issue? Thanks.

@VincentLanglet VincentLanglet merged commit 13b54eb into sonata-project:3.x Dec 2, 2020
@VincentLanglet
Copy link
Member

Thanks @timwentzell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jQuery(window).load in Admin.js is depreciated since 1.8 and removed in 3.0
4 participants