We use some ajax to update a photo on a page. But afterwards, the slimbox lightbox no longer works. Previously, it does.
I tried doing:
But it immediately opens the lightbox (as in the screen darkens and a white box appears at the middle). What I’d like is just to get the slimbox2 plugin sort of ready, not immediately pop-out. I tried looking at the js code for slimbox2 but it’s already the minified version and it seems that the entire function is automatically called as it has this format: