fancyapps / fancybox

jQuery lightbox script for displaying images, videos and more. Touch enabled, responsive and fully customizable.
http://fancyapps.com/
7.27k stars 1.78k forks source link

Option for .clone() gallery content. #437

Closed beefchimi closed 8 years ago

beefchimi commented 12 years ago

I have an fancybox gallery of inline content. The problem is, when fancybox is launched, it moves the inline content into the fancybox window, rather than cloning it. This content is now still hidden even after closing fancybox. It would be very helpful to have the option to .clone() the gallery content.

fancyapps commented 12 years ago

The reason why you asking for cloning instead of moving is because the inline content gets hidden after closing? The script moves the content because cloning can bring problems like multiple same ID`s.

beefchimi commented 12 years ago

Well, its not just that it gets hidden. The content gets moved and the fancybox-placeholder is put in its place. Then, once you close the fancybox, the inline content is returned to its original position, yet it retains the style="display:none;" added by fancybox.

So, if I had the option to avoid this entirely, and just clone the content without the use of IDs, that would be ideal. I see your point though about the concern for multiple IDs and the issues that arise. Any chance this is a feature that could make it into future releases?