summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2007-12-19 15:26:24 (GMT)
committerStella Power2007-12-19 15:26:24 (GMT)
commit4eeee18f6b007ab12f53119cd8cfa12617ad4383 (patch)
tree711acc6fb678de1e2446619b52fbb7cb4634fc11
parenta77cba7ead8b907e85a7958f0be7e2dd2bd784fb (diff)
#202073 - fixed issue with prev and next buttons appearing when there were no6.x-1.2
prev/next images to navigate to.
-rw-r--r--js/lightbox.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/lightbox.js b/js/lightbox.js
index 8683b5f..8085d16 100644
--- a/js/lightbox.js
+++ b/js/lightbox.js
@@ -543,6 +543,10 @@ var Lightbox = {
Lightbox.changeImage(Lightbox.activeImage - 1); return false;
});
}
+ // safari browsers need to have hide() called again
+ else {
+ $('#prevLink').hide();
+ }
// if not last image in set, display next image button
if (Lightbox.activeImage != (Lightbox.imageArray.length - 1)) {
@@ -550,6 +554,10 @@ var Lightbox = {
Lightbox.changeImage(Lightbox.activeImage + 1); return false;
});
}
+ // safari browsers need to have hide() called again
+ else {
+ $('#nextLink').hide();
+ }
this.enableKeyboardNav();
},