dukebody avatar dukebody committed f9b08e1

Only allow comments inside document elements (not page footer, etc.)

Comments (0)

Files changed (1)

web/support/javascript/hsbook.js

 	    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('<tr><td colspan="4">' + loading($(this).attr("id")) + '</td></tr>');
   });
-  $("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");
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.