Skip to content

Commit

Permalink
#6629 Replace jQuery "load" with "on" (#6630)
Browse files Browse the repository at this point in the history
Replace jQuery(window).load with jQuery(window).on('load', handler)

#6629
  • Loading branch information
timwentzell authored Dec 2, 2020
1 parent cab1138 commit 13b54eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/public/Admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ jQuery(document).on('sonata-admin-append-form-element', function(e) {
Admin.setup_collection_counter(e.target);
});

jQuery(window).load(function() {
jQuery(window).on('load', function() {
if (Admin.get_config('CONFIRM_EXIT')) {
jQuery('.sonata-ba-form form').each(function() {
jQuery(this).confirmExit();
Expand Down

0 comments on commit 13b54eb

Please sign in to comment.