Skip to content

Commit

Permalink
Merge pull request #20779 from Yoast/fix-jquery-deprecation-warnings
Browse files Browse the repository at this point in the history
Fix JQuery deprecation warning
  • Loading branch information
igorschoester authored Oct 18, 2023
2 parents 44695aa + 3e65632 commit 0258bbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/js/src/initializers/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,12 @@ export default function initAdmin( jQuery ) {
} ).trigger( "change" );

// Toggle the Wincher section.
jQuery( "#wincher_integration_active input[type='radio']" ).change( function() {
jQuery( "#wincher_integration_active input[type='radio']" ).on( "change", function() {
// The value on is enabled, off is disabled.
if ( jQuery( this ).is( ":checked" ) ) {
jQuery( "#wincher-connection" ).toggle( jQuery( this ).val() === "on" );
}
} ).change();
} ).trigger( "change" );

// Handle the settings pages tabs.
jQuery( "#wpseo-tabs" ).find( "a" ).on( "click", function( event ) {
Expand Down

0 comments on commit 0258bbe

Please sign in to comment.