forked from Public/pics
PhotoPage: apply #photo_frame anchor to clicks as well
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user