[Issue 5136] DDoc: listing methods in the 'Jump to' links may be	undesirable
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Oct 30 12:18:21 PDT 2010
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=5136
Johannes Pfau <johannespfau at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |johannespfau at gmail.com
--- Comment #2 from Johannes Pfau <johannespfau at gmail.com> 2010-10-30 12:17:17 PDT ---
Showing only the top level links is quite easy:
In the listanchors() javascript function:
----------------------------------------------------
 for (var i = 0; i < document.anchors.length; i++)
 {
     var a = document.anchors[i];
+    if(a.parentNode.parentNode.parentNode.parentNode.id == "content") {
         var text = a.name;
         if (hash[text] > 0) continue;
         hash[text] = 1;
         values[n++] = a.name
+    }
 }
-----------------------------------------------------
I have only tested this with one module, but it should work. It should also be
possible to generate a hierarchical view using javascript, but that's some more
work.
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list