I am trying to close the prettyPhoto modal window after a given time. This time will vary so it needs to be attached to this line and not modified in the plugin.
I need to know the working version of this (as this one doesn’t seem to behave):
$.prettyPhoto.delay(500).close();
The $.prettyPhoto.close(); works as normal.
Thanks.
You could always try using a timeout: