Commits

Israel Saeta Pérez 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");