shaheer
shaheer

Reputation: 376

How to alter prettyPhoto description HTML?

hello i want to modify the "description html" of the prettyPhoto i dont think there is a callback available when prettoPhoto lightbox is "shown" (but a callback for close exist)

what do you guys recommend?

Upvotes: 1

Views: 636

Answers (1)

Jared Farrish
Jared Farrish

Reputation: 49188

Looking at the documentation, there is:

changepicturecallback: function(){}, /* Called everytime an item is shown/changed */

As long as that fires when the first picture is shown, you could create a function to check a globally available variable and do your magic on startup, set the pretty_opened variable (or whatever you want to call it) to true, then use the callback to set it to false on close.

Upvotes: 1

Related Questions