summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2008-08-08 13:38:54 (GMT)
committer Stella Power2008-08-08 13:38:54 (GMT)
commitd0684de05b6590c4aa27a16b4fc42cd32a4d6ce9 (patch)
tree746b6eff029eee4d75eb4618d33c625bfe86f4fe
parent875f81a3669e714aad6bc112f804bcabf41bc0a2 (diff)
Fix for slideshow error when continuous looping is enabled but there is only one
image in the slideshow.
-rw-r--r--js/lightbox.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/lightbox.js b/js/lightbox.js
index 3dd543c..a75213f 100644
--- a/js/lightbox.js
+++ b/js/lightbox.js
@@ -584,7 +584,7 @@ var Lightbox = {
}
}
else {
- if (!Lightbox.isPaused) {
+ if (!Lightbox.isPaused && Lightbox.total > 1) {
Lightbox.slideIdArray[Lightbox.slideIdCount++] = setTimeout(function () {Lightbox.changeData(Lightbox.activeImage + 1);}, Lightbox.slideInterval);
}
}
@@ -1016,7 +1016,7 @@ var Lightbox = {
Lightbox.changeData(Lightbox.activeImage + 1);
}
}
- else {
+ else if (Lightbox.total > 1) {
Lightbox.isPaused = true;
}
},