Skip to content
This repository was archived by the owner on Feb 7, 2018. It is now read-only.
This repository was archived by the owner on Feb 7, 2018. It is now read-only.

Lightbox Html Content not visible for previous defined event handlers #11

Description

@jonas-grgt

For example:

Inside my lightbox's HTML I have a input field which I want to use as a autocomplete field. This is done by using jquery-ui.

So I have something like this:

<div id="lightbox">
    <input type="text"/>
</div>

Next I setup autocomplete:

$("#lightbox").autocomplete({source:["foo","bar"]});

And FancyZoom

$("a.light").fancyZoom();

This sadly doesn't work with fancyzoom. I'm guessing that FancyZoom copies the element contained within the #lightbox element.
In firefox you can see the data that has been bound to an element. The original #lightbox input's element has data bound to it (for the autocomplete).
But once you fire up FancyZoom the elements are copied and there is no data bound to the copied elements.

Is there a work around for this issue ? I was thinking of a callback method to be called when the lighbox is completely loaded.

$('selection').fancyZoom({"callback": function() {});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions