Active
Project:
Lightbox2
Version:
6.x-1.9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 May 2010 at 13:47 UTC
Updated:
20 Apr 2011 at 14:33 UTC
I have a flash gallery that displays a lightbox of the image when the thumbnail is clicked.
http://greenbrierfarms.com/drupal/gallery
user/pswd to access this directory is gbf/gbf.
When the lightbox image is closed the flash reloads. This happens in chrome, ff and oddly enough, works properly in ie.
On the original html site http://greenbrierfarms.com/gallery.html , I used jquery-lightbox-0.5 and it worked without reloading the flash in all browsers.
I assume this is an issue with lightbox2, but not 100% on that.
Any ideas would be helpful.
Comments
Comment #1
macdonaldj commentedComment #2
macdonaldj commentedanyone? bueller?
Comment #3
mikerz commentedI'm having this issue too.
Please, any help?
One difference between me and macdonaldj is that I'm calling custom js from within flash...
this is my js:
function addLink(link){
$('#hidden-holder').append(link);
Lightbox.initList();
}
function clickLink(nid){
$('#dynamic-link-'+nid).click();
}
and this is a sample link being sent to the js (I do it this way, because my view generates a link like this anyway; I just modify it by adding the id and send):
Pops up fine.. but totally unloads flash on reload. This sucks for me because I have a 3d view of a whole bunch of nodes. Every time it closes, the flash view re-initializes... re-connects to drupal... reloads the data... and re-initializes the environment.
Comment #4
alexkessler commentedSame here.
Flowplayer as audio player and album cover via lightbox.
Everytime someone listens to a track and wants to take a closer
look at the album cover, the player stops until the lightbox is closed and
then reloads completely.
Comment #5
mikerz commentedHey guys, I figured I'd just try to investigate on my own...
Go to the lightbox module folder, and then the js folder
Open up lightbox.js,
replace line 276
Lightbox.toggleSelectsFlash('hide');
with
Lightbox.toggleSelectsFlash('show');
It's manually disabling the flash on purpose. For our purposes, it's not helpful...
Comment #6
macdonaldj commentedawesome, mike.
I ended up converting my flash gallery to jquery.
Comment #7
Architeck commentedI can confirm that the workaround in #5 resolved my issues with lightbox2 and the soundmanager2 module.
I propose we add an option in the "Advanced settings" fieldset to expose the 'toggleSelectsFlash' setting.