Issue 434: Opening Gallery from inside modal
Status:  Fixed
Owner: ----
Closed:  Apr 2010
Reported by stillnes...@googlemail.com, Feb 18, 2010
What steps will reproduce the problem?
1. Open custom gallery page displaying thumbs inside a modal
2. Use rel attribute for numerous images
3. Click on one of the thumbnails to load image

What is the expected output? What do you see instead?
Expect to see image and have navigation. Image displays fine, but no
navigation...(also the numbering does not appear ie. "1/12")

What version of the product are you using? On what operating system?
Version 1.5.5
Ubuntu Karmic

Please provide any additional information below.
Just to mention I've tested the page by loading it directly (not from
inside modal) and the gallery behaves as expected.

If a solution is possible, would be amazing.
But also, the ultimate solution would perhaps allow me to click on the
image itself to re-load the gallery modal (containing the thumbnails)
- Is this wishful thinking? :)
And naturally, thank you for providing this all in the first place.
Wonderful code; and though the documentation is a little confusing
sometimes (I'm no expert) - I appreciate how thorough you have tried to
be...a vast difference compared to similar code I tried to use prior to
yours....(anyway, enough brown-nosing ;))
Apr 17, 2010
Project Member #1 nyro...@gmail.com
The problem here is the place where the links for the gallery (with rel attribute)
are inside the modal.
nyroModal check against the DOM every time the modal is load to find what links are
in the gallery and to find the next/prev urls and create the counter.

The solution for you might be:
1) detect click on the link to open the modal
2) on the click event, copy these links in a div outside nyroModal which is hidden.
3) open a modal on the one who was clicked (with $('myLink').nyroModal');)
4) On the endRemove event, remove the links you added in the DOM.

Hope it was clear enough... And sorry for the loooong delay...
Status: Fixed
Apr 18, 2010
#2 stillnes...@googlemail.com
Thank you so much for getting back to me...no worries about the delay. I can
appreciate you may have other things going on ;)

Unfortunately, my DOM understanding and experience is very little...I understand the
concepts you're giving, but not exactly how I would go about achieving them.

I would love to ask for a full explanation, but would happilly settle for you
pointing me in a direction which I could study in order to gain clarification...

Thanks again - Michael

(in the mean time; I'll study what I can find anyway :))