hgbook

changeset 913:f9b08e149131

Only allow comments inside document elements (not page footer, etc.)
author dukebody <dukebody@gmail.com>
date Tue Oct 27 00:18:57 2009 +0100 (2009-10-27)
parents 67af12ba4e26
children a9e6eca8bfc5
files web/support/javascript/hsbook.js
line diff
     1.1 --- a/web/support/javascript/hsbook.js	Tue Oct 27 00:15:51 2009 +0100
     1.2 +++ b/web/support/javascript/hsbook.js	Tue Oct 27 00:18:57 2009 +0100
     1.3 @@ -62,14 +62,14 @@
     1.4  	    function() { $(this).nextAll().hide("normal"); })
     1.5      .hover(function() { $(this).fadeTo("normal", 0.8); },
     1.6  	   function() { $(this).fadeTo("normal", 0.35); });
     1.7 -  $("p[@id]").each(function() {
     1.8 +  $(".chapter p[@id]").each(function() {
     1.9      $(this).append(loading($(this).attr("id")));
    1.10    });
    1.11 -  $("table[@id].equation").each(function() {
    1.12 +  $(".chapter table[@id].equation").each(function() {
    1.13      id = $(this).attr("id");
    1.14      $("#" + id + " tr").after('<tr><td colspan="4">' + loading($(this).attr("id")) + '</td></tr>');
    1.15    });
    1.16 -  $("pre[@id]").each(function() {
    1.17 +  $(".chapter pre[@id]").each(function() {
    1.18      $(this).after(loading($(this).attr("id")));
    1.19    });
    1.20    var chapid = $("div.preface, div.chapter, div.appendix, div.bibliography").attr("id");