summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2007-12-19 15:26:02 (GMT)
committer Stella Power2007-12-19 15:26:02 (GMT)
commitc9ba3f670242d2aafd58e49e3c4edadadcfbc1e2 (patch)
treef47a904c1f9a654f5571b98ffbf59177b60db379
parentab6e738e4f9cd1f645ff65388894fb6f9e120f8b (diff)
#202073 - fixed issue with prev and next buttons appearing when there were no5.x-2.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 fe3a75e..488eb35 100644
--- a/js/lightbox.js
+++ b/js/lightbox.js
@@ -544,6 +544,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)) {
@@ -551,6 +555,10 @@ var Lightbox = {
Lightbox.changeImage(Lightbox.activeImage + 1); return false;
});
}
+ // safari browsers need to have hide() called again
+ else {
+ $('#nextLink').hide();
+ }
this.enableKeyboardNav();
},