2009/dap/ReSpec.js/js respec.js,1.49,1.50

Update of /sources/public/2009/dap/ReSpec.js/js
In directory hutz:/tmp/cvs-serv17271/js

Modified Files:
	respec.js 
Log Message:
bug fix, styling

Index: respec.js
===================================================================
RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- respec.js	15 Oct 2009 11:04:38 -0000	1.49
+++ respec.js	29 Oct 2009 17:53:28 -0000	1.50
@@ -23,6 +23,8 @@
 //  - some refactoring is in order
 //  - make a widget that can save using the FS API, and inject the API without it being in the template,
 //    inline CSS without hassle, etc.
+//  - make a list of links to issues appear on a key combination
+//  - warn on empty links to no dfn (perhaps in a special debug mode?)
 
 (function () {
 if (typeof(berjon) == "undefined") berjon = {};
@@ -446,7 +448,7 @@
     },
 
     fixHeaders:    function () {
-        var secs = document.querySelectorAll("section > h1, section > h2, section > h3, section > h4, section > h5, section > h6");
+        var secs = document.querySelectorAll("section > h1:first-child, section > h2:first-child, section > h3:first-child, section > h4:first-child, section > h5:first-child, section > h6:first-child");
         for (var i = 0; i < secs.length; i++) {
             var sec = secs[i];
             var depth = sn.findNodes("ancestor::x:section|ancestor::section", sec).length + 1;

Received on Thursday, 29 October 2009 17:53:39 UTC