http://d.puremagic.com/issues/show_bug.cgi?id=5136


Johannes Pfau <johannesp...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |johannesp...@gmail.com


--- Comment #2 from Johannes Pfau <johannesp...@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: -------

Reply via email to