Last modified: 2007-05-20 17:09:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 4219 - Show/hide links on multiple tables of content only toggle the first table, regardless of the number on the page
Show/hide links on multiple tables of content only toggle the first table, re...
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
All All
: Normal trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2005-12-08 03:11 UTC by Brian Jason Drake
Modified: 2007-05-20 17:09 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Brian Jason Drake 2005-12-08 03:11:19 UTC
All the toggle links appear on the first TOC. Clicking any of the "hide" links hides 
the first TOC and changes the first link to "show". After that, clicking any of the 
links shows the first TOC and changes the first link to "hide".

The JavaScript just grabs the first TOC and the first toggle link; no provision is 
made for multiple TOCs.
Comment 1 Brian Jason Drake 2005-12-08 03:11:42 UTC
An example is at [[Meta:Help talk:Section]].
Comment 2 Rob Church 2005-12-08 07:46:24 UTC
This bug report should have read...

When viewing a page with multiple tables of content, for instance the test case
URL provided, the show/hide links on each table of contents only affect the
first table, regardless of which link was clicked. I believe that the JavaScript
deals with the first table of contents and the first toggle link, and no
provision is made for multiple tables of content. actually explains the problem in better detail. When I first read this
report and the summary, I didn't know what it was about. Please remember this in
Comment 3 Brian Jason Drake 2005-12-09 00:59:15 UTC
"I believe"? That makes it sound like a guess. I looked at the JavaScript myself 
so I am sure.
Comment 4 Lupin 2006-03-02 03:38:31 UTC
Are multiple TOCs ever useful? If not, this bug doesn't 
seems worth fixing to me.
Comment 5 Antoine "hashar" Musso (WMF) 2007-05-20 16:54:34 UTC
We only allow one TOC to be shown. The toc will be placed before the
first heading or at the first '__TOC__' marker found.
Comment 6 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-05-20 17:09:40 UTC
I could swear that wasn't always true.

Note You need to log in before you can comment on or make changes to this bug.