# HG changeset patch # User dukebody # Date 1256599137 -3600 # Node ID f9b08e149131e7c0d1815dbabaeb8eb2591e8204 # Parent 67af12ba4e269c4f566d0ab8160fb58ea9d10bf3 Only allow comments inside document elements (not page footer, etc.) diff -r 67af12ba4e26 -r f9b08e149131 web/support/javascript/hsbook.js --- a/web/support/javascript/hsbook.js Tue Oct 27 00:15:51 2009 +0100 +++ b/web/support/javascript/hsbook.js Tue Oct 27 00:18:57 2009 +0100 @@ -62,14 +62,14 @@ function() { $(this).nextAll().hide("normal"); }) .hover(function() { $(this).fadeTo("normal", 0.8); }, function() { $(this).fadeTo("normal", 0.35); }); - $("p[@id]").each(function() { + $(".chapter p[@id]").each(function() { $(this).append(loading($(this).attr("id"))); }); - $("table[@id].equation").each(function() { + $(".chapter table[@id].equation").each(function() { id = $(this).attr("id"); $("#" + id + " tr").after('' + loading($(this).attr("id")) + ''); }); - $("pre[@id]").each(function() { + $(".chapter pre[@id]").each(function() { $(this).after(loading($(this).attr("id"))); }); var chapid = $("div.preface, div.chapter, div.appendix, div.bibliography").attr("id");