diff --git a/public/js/albumnav.js b/public/js/albumnav.js index fc8cfe6..ec041f0 100644 --- a/public/js/albumnav.js +++ b/public/js/albumnav.js @@ -1,14 +1,14 @@ function enableKeyDownNavigation() { document.addEventListener("keydown", function (event) { if (event.keyCode == 37) { - var target = document.querySelector(".pagination ul > :first-child a"); + var target = document.querySelector("ul.pagination > :first-child a"); if (target && target.href) { event.preventDefault(); document.location.href = target.href; } } else if (event.keyCode == 39) { - var target = document.querySelector(".pagination ul > :last-child a"); + var target = document.querySelector("ul.pagination > :last-child a"); if (target && target.href) { event.preventDefault(); document.location.href = target.href;