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 ;))
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...