haddock: Ticket #177: Remember collapsed sections in index.html / haddock-util.jshttp://trac.haskell.org/haddock/ticket/177
<p>
This is an itch that's been scratching me for a while now. I open up the index.html for base and other packages in the Firefox sidebar for easy access, but every time I switch between packages, it forgets which sections I've collapsed. This is particularly problematic with base, which has quite a few large hierarchies that I don't really use, e.g. Distribution.*.
</p>
<p>
This patch to haddock-util.js remembers which sections have been collapsed in a cookie, and restores them on the next load. It works correctly even when the docs for multiple packages are hosted at the same domain. (Doesn't set path=/ for the cookie.) Every section is expanded by default when viewed for the first time, in line with existing behaviour.
</p>
<p>
Cheers,
/Liyang
</p>
en-ushaddockhttp://www.haskell.org/wikistatic/haskellwiki_logo.pnghttp://trac.haskell.org/haddock/ticket/177
Trac 0.11.1liyangMon, 11 Jul 2011 01:10:50 GMTcomment added; attachment sethttp://trac.haskell.org/haddock/ticket/177
http://trac.haskell.org/haddock/ticket/177
<ul>
<li><strong>attachment</strong>
set to <em>persistent-collapsed.darcs</em>
</li>
</ul>
TicketliyangMon, 11 Jul 2011 01:11:00 GMTcomment added; cc sethttp://trac.haskell.org/haddock/ticket/177#comment:1
http://trac.haskell.org/haddock/ticket/177#comment:1
<ul>
<li><strong>cc</strong>
<em>haskell.org@…</em> added
</li>
</ul>
TicketwaernFri, 30 Sep 2011 22:07:49 GMTcomment added; resolution set; status changedhttp://trac.haskell.org/haddock/ticket/177#comment:2
http://trac.haskell.org/haddock/ticket/177#comment:2
<ul>
<li><strong>status</strong>
changed from <em>new</em> to <em>closed</em>
</li>
<li><strong>resolution</strong>
set to <em>fixed</em>
</li>
</ul>
<p>
Patch applied. Thanks!
</p>
TicketTue, 25 Sep 2012 11:09:55 GMTmilestone deleted; comment addedhttp://trac.haskell.org/haddock/ticket/177#comment:3
http://trac.haskell.org/haddock/ticket/177#comment:3
<ul>
<li><strong>milestone</strong>
<em>2.10.0</em> deleted
</li>
</ul>
<p>
Milestone 2.10.0 deleted
</p>
Ticket