hgbook

changeset 891:2aebffe8609d

Add support for commenting equation tables.
author dukebody <dukebody@gmail.com>
date Mon Oct 19 20:00:01 2009 +0200 (2009-10-19)
parents 2887b61fa4fe
children 86073756fe77
files web/javascript/hsbook.js
line diff
     1.1 --- a/web/javascript/hsbook.js	Sun Oct 11 21:12:46 2009 +0200
     1.2 +++ b/web/javascript/hsbook.js	Mon Oct 19 20:00:01 2009 +0200
     1.3 @@ -65,10 +65,13 @@
     1.4    $("p[@id]").each(function() {
     1.5      $(this).append(loading($(this).attr("id")));
     1.6    });
     1.7 +  $("table[@id].equation").each(function() {
     1.8 +    $(this).append(loading($(this).attr("id")));
     1.9 +  });
    1.10    $("pre[@id]").each(function() {
    1.11      $(this).after(loading($(this).attr("id")));
    1.12    });
    1.13 -  var chapid = $("div.preface, div.chapter, div.appendix, div.bibliography").attr("id");
    1.14 +  var chapid = $("body, div.preface, div.chapter, div.appendix, div.bibliography").attr("id");
    1.15    $("#chapterfeed").attr("href",
    1.16  			 $("#chapterfeed").attr("href") + chapid + "/");
    1.17    $.getJSON(location.protocol + "//" + location.host + "/comments/chapter/" +