Support » Plugin: The Events Calendar » Footer Nav Pagination Stops Working After Search

  • Resolved David

    (@dwieler)


    Using Calendar Pro

    I found a problem with the search/footer nav.

    When you do a search (I was testing on the month view), the results are dynamically inserted via ajax. However, the event propagation fails on the footer nav because of this.

    I had to add a quick fix, but I think the plugin should be fixed too please.

    Here is my fix in case someone else is having this issue.

    $(document).ready(function(){
    
    $('body').on('click', '.tribe-events-nav-next a, .tribe-events-nav-previous a', function(e) {
    	e.preventDefault();
    	location.href = $(this).attr('href');
    
    	return false;
    });
    
    });

    e.preventDefault(); and return false; probably aren’t required.

Viewing 1 replies (of 1 total)
  • Hi David! Sam here, I write most of the js for the plugin these days. It seems you are a pro customer? Can you please make a support topic over in the customer support forum of theeventscalendar.com?

    Also make a note there that sam said he would look at it after them going through the prelim checks with you. Generally, and locally for me, the footer nav links work fine after searches on the ajax events, but we’ll try to sort whats going on with your system.

Viewing 1 replies (of 1 total)
  • The topic ‘Footer Nav Pagination Stops Working After Search’ is closed to new replies.