Hey.

When using this module with Drupal 7, and viewing it on Chrome, I'm seeing the background as flat black. I changed the opacity down to 0.3, but it doesn't actually do anything - My guess is some part of the fade in/face out code is sending the opacity to 1.0 and then it gets stuck there, but I'm not having any luck figuring out where.

Files: 
CommentFileSizeAuthor
#2 fix_lightbox_opacity-2020057-2.patch590 bytesjcfiala

Comments

More data.

1) I'm using the modal ability, so it's lightmodal.

2) It _is_ the fadeIn on line 302:

<?php
   
if (lightvideo && this.detectMacFF2()) {
      $(
"#lightbox2-overlay").removeClass("overlay_default");
      $(
"#lightbox2-overlay").addClass("overlay_macff2");
      $(
"#lightbox2-overlay").css({'opacity' : null});
    }
    else {
      $(
"#lightbox2-overlay").removeClass("overlay_macff2");
      $(
"#lightbox2-overlay").addClass("overlay_default");
      $(
"#lightbox2-overlay").css({'opacity' : Lightbox.overlayOpacity});
    }
    $(
"#lightbox2-overlay").fadeIn(Lightbox.fadeInSpeed);
?>

When I replaced that last fadeIn with:

<?php
$("#lightbox2-overlay").fadeTo(Lightbox.fadeInSpeed, Lightbox.overlayOpacity);
?>

Everything worked fine. Let's see if I can whack out a quick patch.

Status:Active» Needs review
StatusFileSize
new590 bytes

Here we go...