batpad / jquery-rbox

Responsive lightbox jQuery plugin
Other
0 stars 3 forks source link

Duplication of IDs and Events Losts #6

Closed moahmed closed 10 years ago

moahmed commented 10 years ago

The rbox duplicates the content of what i want to show in the rbox. This is duplicating the ids and all the events attached are lost.

The content i want to show in the rbox is inline and stored inside a DIV. There are ids and events attached to the content inside this DIV. When the lightbox is shown it copies the html into its container, duplicating the ids i have used.

The rbox should ideally move the content of the inline DIV instead of copying it.

This is a major issue and has made the plugin not usable.

batpad commented 10 years ago

Right. Currently, rbox just takes the html of the inline element and puts it in the lightbox, if you chose the inline html mode. This will cause you to lose event handlers, etc. There are custom callbacks you can fire when the content is added to the lightbox, though, to attach your event handlers there.

I would suggest the best option would be: Use a Githubissues.

  • Githubissues is a development platform for aggregating issues.