Added XML with genre families specification and script converting it to HTML.
[wolnelektury.git] / wolnelektury / media / js / book.js
index dcab8b1..fb4467f 100644 (file)
@@ -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'));