hgbook

diff web/javascript/hsbook.js @ 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 ad304b606163
children fefa45ccffc0
line diff
     1.1 --- a/web/javascript/hsbook.js	Tue Mar 10 21:42:19 2009 -0700
     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/" +