WordPress.org

Ready to get started?Download WordPress

Forums

Event manager error when using the mobile theme (2 posts)

  1. arochford
    Member
    Posted 2 years ago #

    Using event manager if you go too my events page there is jquery error in the mobile version and the search will not work.

  2. arochford
    Member
    Posted 2 years ago #

    Http://mytrinilime.com/events

    between: and
    jQuery(document).ready( function($){

    $('.em-events-search-form select[name=country]').change( function(){

    $('.em-events-search select[name=state]').html('');
    $('.em-events-search select[name=region]').html('');
    var data = {

    _wpnonce : '811ec6e55d',

    action : 'search_states',

    country : $(this).val(),

    return_html : true

    };

    $('.em-events-search select[name=state]').load( EM.ajaxurl, data );

    data.action = 'search_regions';

    data._wpnonce = 'c6dcdd3f85';

    $('.em-events-search select[name=region]').load( EM.ajaxurl, data );

    });

    $('.em-events-search-form select[name=region]').change( function(){

    $('.em-events-search select[name=state]').html('');
    var data = {

    _wpnonce : '811ec6e55d',

    action : 'search_states',

    region : $(this).val(),

    country : $('.em-events-search-form select[name=country]').val(),

    return_html : true

    };

    $('.em-events-search select[name=state]').load( EM.ajaxurl, data );

    });

    //in order for this to work, you need the above classes to be present in your theme

    $('.em-events-search-form').submit(function(){

    if( this.search.value=='Search Events'){

    this.search.value = '';

    }

    if( $('#em-wrapper .em-events-list').length == 1 ){

    $(this).ajaxSubmit({

    url : EM.ajaxurl,

    data : {

    _wpnonce : '811ec6e55d',

    action : 'search_states',

    country : $(this).val(),

    return_html : true

    },

    beforeSubmit: function(form) {

    $('.em-events-search-form :submit').val('Searching...');

    },

    success : function(responseText) {

    $('.em-events-search-form :submit').val('Search');

    $('#em-wrapper .em-events-list').replaceWith(responseText);

    }

    });

    }

    });

    });

    Date/Time

    Event

    07 Jan 2012

    10:00 PM to 4:00 AM

    TRIBE ICE (Insane Cooler Experience) 2012

    Jenny's Car Park, Port of Spain

    08 Jan 2012

    4:00 PM to 11:00 PM

    Trinity Soka in Moka

    Trinity College, Maraval

    13 Jan 2012

    10:00 PM to 4:00 AM

    Anchorage Street Party

    Anchorage, Chagaramas

    14 Jan 2012

    12:00 AM to 12:00 AM

    Chutney Soca Monarch Preliminaries

    To Be Announced, Trinidad

    14 Jan 2012

    4:00 PM to 12:00 AM

    Page 1 of 2 | Next page

Topic Closed

This topic has been closed to new replies.

About this Topic