1. Israel Saeta Pérez
  2. hgbook-alqua

Commits

Israel Saeta Pérez  committed 2aebffe

Add support for commenting equation tables.

  • Participants
  • Parent commits 2887b61
  • Branches default

Comments (0)

Files changed (1)

File web/javascript/hsbook.js

View file
  • Ignore whitespace
   $("p[@id]").each(function() {
     $(this).append(loading($(this).attr("id")));
   });
+  $("table[@id].equation").each(function() {
+    $(this).append(loading($(this).attr("id")));
+  });
   $("pre[@id]").each(function() {
     $(this).after(loading($(this).attr("id")));
   });
-  var chapid = $("div.preface, div.chapter, div.appendix, div.bibliography").attr("id");
+  var chapid = $("body, div.preface, div.chapter, div.appendix, div.bibliography").attr("id");
   $("#chapterfeed").attr("href",
 			 $("#chapterfeed").attr("href") + chapid + "/");
   $.getJSON(location.protocol + "//" + location.host + "/comments/chapter/" +