Calendar View on Mobile Shows Dates from Previous Month

Home Forums Calendar Products Events Calendar PRO Calendar View on Mobile Shows Dates from Previous Month

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #946429
    twkmedia
    Participant

    Hi,

    I’ve seen that this bug has already been reported in the forum here but since the topic is closed, I can’t reply to the topic anymore.

    I just wanted to tell you that I figured where the bug is and made a fix for it, in case you haven’t found it yet yourselves.

    The bug is located in /the-events-calendar/resources/tribe-events-ajax-calendar.js on line 120 in the tribe_mobile_load_events function

    		function tribe_mobile_load_events( date ) {
    
    			var date_adj = date;
    			if ( date < 10 ) {
    				date_adj = '0' + date;
    			}
    
    			var $target = $( '.tribe-mobile-day[data-day="' + date + '"]' ),
    				$more = $( '.tribe-event-day-' + date_adj + ' .tribe-events-viewmore' ),
    				$events = $( '.tribe-event-day-' + date_adj + ' .hentry' );

    should be

    		function tribe_mobile_load_events( date ) {
    
    			var date_adj = date;
    			if ( date < 10 ) {
    				date_adj = '0' + date;
    			}
    
    			var $target = $( '.tribe-mobile-day[data-day="' + date + '"]' ),
    				$more = $( '.tribe-event-day-' + date_adj + ' .tribe-events-viewmore' ),
    				$events = $( '.tribe-event-day-' + date_adj + ' .hentry' );
    #946454
    Brian
    Member

    Thanks for providing this coding for us.

    Glad you have a fix.

    We do have a fix for this in our next release and I am adding this ticket to our internal one for reference.

    Thanks again for sharing.

    #959528
    Brian
    Member

    Since I haven’t heard back from you here, I’m going to go ahead and close out this thread. Feel free to start a new thread if you have further issues. Thanks! 🙂

    #966740
    Leah
    Member

    Hi there,

    Thank you for your support and patience while we worked on this issue. We are happy announce that we have incorporated a fix into our upcoming 3.10 release. Keep an eye out for a release announcement on our site and for updates available on your WordPress dashboard.

    While we have thoroughly tested this release and are confident of its quality, it is impossible to account for every edge case in the wide world of WordPress. If you run into trouble with the new version or you don’t see your reported issue corrected, please start a new thread and we will be happy to work with you.

    Thanks again for your patience here. We’re excited to get this version out the door and into your hands!

    Best,
    The Events Calendar Team

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Calendar View on Mobile Shows Dates from Previous Month’ is closed to new replies.