From 350fbc78517b633df190da93bf654825626f5997 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Thu, 18 Sep 2008 13:36:45 +0200 Subject: [PATCH 1/1] Fixed a book in book.js when link to main page didn't work in book reader. --- wolnelektury/media/js/book.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolnelektury/media/js/book.js b/wolnelektury/media/js/book.js index dcab8b125..fb4467f7b 100644 --- a/wolnelektury/media/js/book.js +++ b/wolnelektury/media/js/book.js @@ -17,7 +17,7 @@ $(function() { // On page load, scroll to anchor scrollToAnchor(window.location.hash) - $('body').delegate('click', '#toc a, #themes a, .anchor, .annotation', function(event) { + $('#toc, #themes, #book-text').delegate('click', 'a', function(event) { event.preventDefault(); $('#menu li a.selected').click(); scrollToAnchor($(this).attr('href')); -- 2.20.1