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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T6219, the corresponding Phabricator task for complete and up-to-date bug report information.
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...
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.6.x
All All
: Normal trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
http://meta.wikimedia.org/wiki/Help_t...
:
Depends on:
Blocks:
  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: ---


Attachments

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.

...it 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
future.
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.


Navigation
Links