• Resolved psperkins

    (@psperkins)


    I have configured the events on the calendar page to use a lightbox popup for event details. It works great on the first page of events (example: January).

    However, once we are ahead in the calendar to the next month (example: Februrary) the lightbox no longer works and takes me to a single-event page.

    I have experimented with using both the template file as well as the format overrides but no difference either way.

    I can see in the source that nothing has changed to affect it in such a way – the lightbox class is still there. Still no love and I need this to work.

    Any ideas or suggestions?

    http://wordpress.org/extend/plugins/events-manager/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter psperkins

    (@psperkins)

    I figured this out.

    I needed to reinitialize lightbox after page change in the ajax function.

    On line 14 of events-manager.js I inserted initLightbox(); and now it works like a charm.

    Leaving this in case someone else is looking for the answer.
    If there is a better way of doing this without hacking the core file of the plugin please give a shout as I’d like this to be a permanent fix.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    you could add a new event somewhere else using the same code e.g.

    $('.em-calendar-wrapper').delegate('a.em-calnav, a.em-calnav', 'click', function(e){
    initLightbox();
    });
    Thread Starter psperkins

    (@psperkins)

    Brilliant, thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Lightboxing Event Details’ is closed to new replies.