Index: trunk/phase3/skins/common/wikibits.js |
— | — | @@ -163,6 +163,7 @@ |
164 | 164 | } |
165 | 165 | |
166 | 166 | function toggleToc() { |
| 167 | + var tocmain = document.getElementById('toc'); |
167 | 168 | var toc = document.getElementById('toc').getElementsByTagName('ul')[0]; |
168 | 169 | var toggleLink = document.getElementById('togglelink'); |
169 | 170 | |
— | — | @@ -170,10 +171,12 @@ |
171 | 172 | changeText(toggleLink, tocHideText); |
172 | 173 | toc.style.display = 'block'; |
173 | 174 | document.cookie = "hidetoc=0"; |
| 175 | + tocmain.className = ''; |
174 | 176 | } else { |
175 | 177 | changeText(toggleLink, tocShowText); |
176 | 178 | toc.style.display = 'none'; |
177 | 179 | document.cookie = "hidetoc=1"; |
| 180 | + tocmain.className = 'tochidden'; |
178 | 181 | } |
179 | 182 | } |
180 | 183 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -491,6 +491,7 @@ |
492 | 492 | * (bug 20578) Wrong localized image metadata - duplicated string? |
493 | 493 | * (bug 20556) Stub threshold's "other" <input> in Special:Preferences now has a |
494 | 494 | correct type="text" parameter |
| 495 | +* (bug 482) Don't include TOC in the printable version if it has been hidden |
495 | 496 | |
496 | 497 | == API changes in 1.16 == |
497 | 498 | |