Closed (fixed)
Project:
Lightbox2
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Oct 2008 at 12:08 UTC
Updated:
22 Jan 2009 at 14:00 UTC
Pagination on iframes doesn't work, because on line 468 of lightbox.js we have:
$('#frameContainer').append('<iframe id="lightboxFrame" style="display: none;" src="'+src+'"></iframe>');
Which appends the new iframe to the bottom of all the existing ones, then later the code, shows the 'top' one.
This lines needs to change to:
$('#frameContainer').html('<iframe id="lightboxFrame" style="display: none;" src="'+src+'"></iframe>');
Sorry but I've no time to make a patch!
Comments
Comment #1
stella commentedThanks! I've committed this and it will be included in the next dev release, available later today.
Cheers,
Stella
Comment #2
stella commentedReleased in Lightbox2 6.x-1.9 and 5.x-2.9.
Cheers,
Stella