Commit c9ba3f67 authored by stella's avatar stella

#202073 - fixed issue with prev and next buttons appearing when there were no

prev/next images to navigate to.
parent ab6e738e
......@@ -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();
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment