| Issue 364: | Setup selector correctly binds click events but does not correctly include items in gallery rotation (does not exclude) | |
| 2 people starred this issue and may be notified of changes. | Back to list |
|
What steps will reproduce the problem?
1. Start with the following HTML markup (I know it's messy, it's quick)
<div id="divGalleryThumbnails">
<a class="divGalleryItem " title="Test 1 - (000001)" rel="templateGal"
href="/images/000001.jpg">
<div style="background-image: url(/images/000001t.jpg);">
<img border="0" src="/images/ItemFG.png"/>
</div>
<div class="divGalleryItemInfo">Test (000001)</div>
</a><a class="divGalleryItem " title="Test 2 - (000002)"
rel="templateGal" href="/images/000002.jpg">
<div style="background-image: url(/images/000002t.jpg);">
<img border="0" src="/images/ItemFG.png"/>
</div>
<div class="divGalleryItemInfo">Test 2 (000002)</div>
</a>
<a class="divGalleryItem " title="Test 3 - (000003)" rel="templateGal"
href="/images/000003.jpg">
<div style="background-image: url(/images/000003t.jpg);">
<img border="0" src="/images/ItemFG.png"/>
</div>
<div class="divGalleryItemInfo">Test 3 (000003)</div>
</a>
<a class="divGalleryItem " title="Test 4 - (000004)" rel="templateGal"
href="/images/000004.jpg">
<div style="background-image: url(/images/000004t.jpg);">
<img border="0" src="/images/ItemFG.png"/>
</div>
<div class="divGalleryItemInfo">Test Template 4 (000004)</div>
</a>
</div>
2. Initialze modal with:
$('#cmsTemplateGallery a.divGalleryItem').not(":even").nyroModal();
What is the expected output? What do you see instead?
Expected result is that only ":odd" items will be modal links and only
":odd" items will appear in the gallery, since jQuery selects only the
":odd" elements. The first is true, only those items are links, but the
gallery view's next & previous links do not seem to limit the result set.
Clicking Next will cycle through all of the items, ignoring the even / odd
status.
What version of the product are you using? On what operating system?
Version 1.5.2
Windows XP, IE 8(7 emulation) and Firefox
Nov 8, 2009
Did my last comment help you?
Apr 16, 2010
(No comment was entered for this change.)
Status:
WontFix
|
||||||||
nyroModal doesn't work this way. There is many different possibily to bound a link for creating a nyroModal. The gallery feature use the rel attribute to find out what are the others links in the gallery. The solution in your case might be to change the rel attribute like: $('#cmsTemplateGallery a.divGalleryItem').not(":even").attr('rel', 'templateGalEven').nyroModal();