PhotoPage: apply #photo_frame anchor to clicks as well

This commit is contained in:
2023-03-12 12:55:32 +01:00
parent 85be093a36
commit 5c2eff09b8
2 changed files with 4 additions and 4 deletions

View File

@@ -4,14 +4,14 @@ function enableKeyDownNavigation() {
var target = document.getElementById("previous_photo").href;
if (target) {
event.preventDefault();
document.location.href = target + '#photo_frame';
document.location.href = target;
}
}
else if (event.keyCode == 39) {
var target = document.getElementById("next_photo").href;
if (target) {
event.preventDefault();
document.location.href = target + '#photo_frame';
document.location.href = target;
}
}
}, false);