rebuild pages at c784b1c

This commit is contained in:
Steve Klabnik
2015-12-30 16:27:27 +00:00
parent 40fb45c2d9
commit 4a6da54d5e
+6 -2
View File
@@ -32,11 +32,15 @@ $( document ).ready(function() {
switch (e.keyCode) {
case KEY_CODES.NEXT_KEY:
e.preventDefault();
window.location.href = $('.nav-chapters.next').attr('href');
if($('.nav-chapters.next').length) {
window.location.href = $('.nav-chapters.next').attr('href');
}
break;
case KEY_CODES.PREVIOUS_KEY:
e.preventDefault();
window.location.href = $('.nav-chapters.previous').attr('href');
if($('.nav-chapters.previous').length) {
window.location.href = $('.nav-chapters.previous').attr('href');
}
break;
}
});