Skip to content

Commit

Permalink
Fix: jQuery change() deprecated function usage (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadNateqi authored Oct 4, 2024
1 parent 8918c71 commit 8bdda5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/admin-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jQuery( function( $ ) {
'delay': 200
} );

$( '#wpo-wcpdf-preview-wrapper #due_date' ).change( function() {
$( '#wpo-wcpdf-preview-wrapper #due_date' ).on( 'change', function() {
const $due_date_checkbox = $( '#wpo-wcpdf-preview-wrapper #due_date' );
const $due_date_days_input = $( '#wpo-wcpdf-preview-wrapper #due_date_days' );

Expand Down
Loading

0 comments on commit 8bdda5b

Please sign in to comment.