summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2008-05-26 11:43:49 (GMT)
committerStella Power2008-05-26 11:43:49 (GMT)
commit252e63c8f0f4cf46c2d3bfb494e2411cd3abce72 (patch)
tree7e4bd44a35347579805aefa89433c6671fb2d633
parent11f5ed3bcfe59da3e4b80f9724d299d4cf76ea33 (diff)
#262076 - fixed IE issue with the navigation links.6.x-1.7
Also fixed IE issue with the setTimeout() stuff in the slideshow functionality.
-rw-r--r--js/lightbox.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/js/lightbox.js b/js/lightbox.js
index 57bdfc3..6760366 100644
--- a/js/lightbox.js
+++ b/js/lightbox.js
@@ -613,7 +613,6 @@ var Lightbox = {
photo.style.width = (imageWidth) + 'px';
photo.style.height = (imageHeight) + 'px';
Lightbox.resizeImageContainer(imageWidth, imageHeight);
- Lightbox.inprogress = false;
// Clear onLoad, IE behaves irratically with animated gifs otherwise.
imgPreloader.onload = function() {};
@@ -745,18 +744,18 @@ var Lightbox = {
Lightbox.updateDetails();
this.preloadNeighborImages();
}
- this.inprogress = false;
+ Lightbox.inprogress = false;
// Slideshow specific stuff.
if (Lightbox.isSlideshow) {
if (Lightbox.activeImage == (Lightbox.imageArray.length - 1)) {
if (Lightbox.autoExit) {
- Lightbox.slideIdArray[Lightbox.slideIdCount++] = setTimeout(Lightbox.end, Lightbox.slideInterval, 'slideshow');
+ Lightbox.slideIdArray[Lightbox.slideIdCount++] = setTimeout(function () {Lightbox.end('slideshow');}, Lightbox.slideInterval);
}
}
else {
if (!Lightbox.isPaused) {
- Lightbox.slideIdArray[Lightbox.slideIdCount++] = setTimeout(Lightbox.changeImage, Lightbox.slideInterval, Lightbox.activeImage + 1);
+ Lightbox.slideIdArray[Lightbox.slideIdCount++] = setTimeout(function () {Lightbox.changeImage(Lightbox.activeImage + 1);}, Lightbox.slideInterval);
}
}
if (Lightbox.showPlayPause && Lightbox.imageArray.length > 1 && !Lightbox.isPaused) {