Multiple instances of pretty photo loaded after the initial document load
  • I had an issue with instantiating multiple instances of prettyPhoto after the initial loading of the script (ie: re-instantiating it when a new dom element is loaded.) I resolved the issue with the following modification to jquery.prettyPhoto.js, but I'm a little worried about forward compatibility with future releases of prettyPhoto. Any chance that this, or some other fix will be applied to pretty photo in the future? Here was the fix that I used on line 100 of the uncompressed prettyPhoto script:

    if(!$ppt) $ppt = $('.ppt');
    if(!$pp_pic_holder) $pp_pic_holder = $('.pp_pic_holder');
    if(!$pp_overlay) $pp_overlay = $('div.pp_overlay');

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