Author: hemanshu_desai
Description:
when the TOC is hidden, it should not print. what happens now is a box with
"Contents" in it gets printed.
Version: unspecified
Severity: minor
• bzimport | |
Sep 14 2004, 10:22 AM |
F1403: tocprint.patch | |
Nov 21 2014, 7:08 PM |
Author: hemanshu_desai
Description:
when the TOC is hidden, it should not print. what happens now is a box with
"Contents" in it gets printed.
Version: unspecified
Severity: minor
Unknown Object (Diffusion Commit) |
This should be possible with some style tweaking if we set the outer box's class to something which is
hidden in the print stylesheet but displays on screen.
(The remaining box shows on screen so you can click the 'show' button, but of course that's unnecessary in
print.)
wikipedia wrote:
Patch to fix this bug
This patch should be all that's needed to fix this bug. As suggested, it sets
the toc box's class to something that will be hidden in the print stylesheet.
Attached:
Thanks, Shane! Patch works correctly in Safari 1.2.4; gone ahead and checked it into 1.4.
wikipedia wrote:
Ah, thanks for testing in another browser, I should note that I tested with IE 6
and Firefox 1.0 on Windows XP.
The JavaScript part for tochidden ist lost in http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/wikibits.js?r1=6350&r2=7073
Please integrate http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/wikibits.js?r1=5091&r2=6350 again.
Change 135692 had a related patch set uploaded by Gerrit Patch Uploader:
Hide toc caption on print when collapsed