If your date picker on grid view is broken in a way where it does nothing at all, this is the right place. It’s a javascript error.
I have no solid conclusion as to why the error occurs and I can’t reproduce the error, but you can try rewriting some javascript as follows. I’d like to get feedback on whether or not this fixes the bug, since both the old way and this new way work for me.
In the-events-calendar/views/datepicker.php, in the script tags,
change:
jQuery(document).ready(function(){
jQuery('.<?php echo $prefix; ?>events-dropdown').change(function( ) {
monthSelect = jQuery('#<?php echo $prefix; ?>events-month');
yearSelect = jQuery('#<?php echo $prefix; ?>events-year');
jumpMonth = monthSelect.attr("options")[monthSelect.attr("selectedIndex")].value;
jumpMonth = monthSelect.find('option')[monthSelect.attr("selectedIndex")].value;
jumpYear = yearSelect.attr("options")[yearSelect.attr("selectedIndex")].value;
location.href = '<?php echo $link; ?>' + jumpYear + '-' + jumpMonth;
});
});
to:
jQuery(document).ready(function() {
jQuery('.<?php echo $prefix; ?>events-dropdown').change(function() {
location.href = '<?php echo $link; ?>' + jQuery('#<?php echo $prefix; ?>events-year').val() + '-' + jQuery('#<?php echo $prefix; ?>events-month').val();
});
});
@musicab
Visiting your site, that’s some pretty weird behavior. Your date picker seems to be working properly, so I think your issue has more to do with the multiple-loop problem here:
https://www.ads-software.com/support/topic/354580/page/2
That’s a tougher problem, but I posted a temporary solution in that thread.
Justin