How to test if prettyPhoto is currently open
  • Hey everyone,

    I have prettyPhoto working with a dynamic image carousel, and I was wondering how to test from the main body whether a user is currently in the lightroom / prettyPhoto mode or in carousel overview.

    So I'm assuming it would be something like

    if prettyPhoto is currently open / not closed {
    // do something

    If that makes sense? Any help appreciated!

    Thanks :)
  • You can always check to see if the prettyPhoto main div is in the markup. Something like
    if($('.pp_pic_holder').size() > 0){
    // Do something
  • Great! Thank you so much :)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter