diff --git a/public/js/photonav.js b/public/js/photonav.js index 44e4fd33..e9019f25 100644 --- a/public/js/photonav.js +++ b/public/js/photonav.js @@ -4,14 +4,14 @@ function enableKeyDownNavigation() { var target = document.getElementById("previous_photo").href; if (target) { event.preventDefault(); - document.location.href = target; + document.location.href = target + '#photo_frame'; } } else if (event.keyCode == 39) { var target = document.getElementById("next_photo").href; if (target) { event.preventDefault(); - document.location.href = target; + document.location.href = target + '#photo_frame'; } } }, false); @@ -53,13 +53,13 @@ function enableTouchNavigation() { var target = document.getElementById("previous_photo").href; if (target) { event.preventDefault(); - document.location.href = target; + document.location.href = target + '#photo_frame'; } } else { var target = document.getElementById("next_photo").href; if (target) { event.preventDefault(); - document.location.href = target; + document.location.href = target + '#photo_frame'; } } }