summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2008-05-26 11:43:31 (GMT)
committerStella Power2008-05-26 11:43:31 (GMT)
commit7fe55499749d11a5f8dd271b34ff1810d297b6d4 (patch)
treeec2ce69877385663b93a8e29b5d46e78eef02192
parent1e6aaa884f71b53823fe121c3ba8b61fe74caf49 (diff)
#262076 - fixed IE issue with the navigation links.5.x-2.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 8d00dd5..fa546bb 100644
--- a/js/lightbox.js
+++ b/js/lightbox.js
@@ -612,7 +612,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() {};
@@ -744,18 +743,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) {