jQuery 3.x compatibility

This commit is contained in:
abuyoyo 2024-11-07 20:55:22 +02:00
parent c4cd7fddef
commit 059f67fd0c

View File

@ -1,5 +1,5 @@
jQuery( document ).ready( function( $ ) {
$("#swpm-user-list").change( function() {
jQuery( function( $ ) {
$("#swpm-user-list").on( 'change', function() {
$recipients = $("#swpm-recipient-emails");
if ( $recipients.val() == '' ) {
$recipients.val( $(this).find("option:selected").attr("value") );