Skip to content

Commit

Permalink
Find search value from form, not from calendar object
Browse files Browse the repository at this point in the history
Calendar object is persistent, so the values don't change.
  • Loading branch information
joedolson committed Jan 21, 2024
1 parent fc3b02a commit a9aead5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/mcjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@
if ( inputForm.hasClass( 'mc-access-switcher' ) ) {
var access = inputForm.find( 'select[name=access]' ).val();
}
var mcs = calendar.find( 'input[name=mcs]' ).val();
var link = $( this ).attr( 'data-href' );
var mcs = inputForm.find( 'input[name=mcs]' ).val();
var link = $( this ).attr( 'data-href' );
} else {
var link = $(this).attr('href');
}
Expand Down

0 comments on commit a9aead5

Please sign in to comment.