Last modified: 2014-02-01 02:20:17 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 T62030, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60030 - toc hide on live preview doesn't work anymore
toc hide on live preview doesn't work anymore
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.23.0
All All
: High normal (vote)
: 1.22.x release
Assigned To: Fomafix
: code-update-regression
Depends on:
Blocks: 39272
  Show dependency treegraph
 
Reported: 2014-01-14 07:46 UTC by Fomafix
Modified: 2014-02-01 02:20 UTC (History)
3 users (show)

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


Attachments

Description Fomafix 2014-01-14 07:46:55 UTC
Since https://gerrit.wikimedia.org/r/101470 hiding of toc in live preview doesn't work anymore, because the hook is fired when the content is detached and the toc hiding code search on the attached content.

Reproduced in Mozilla Firefox and Google Chrome.

Solution: Use $content of the hook
Comment 1 Gerrit Notification Bot 2014-01-14 07:50:37 UTC
Change 107337 had a related patch set uploaded by Gerrit Patch Uploader:
(Bug 60030) Use $content of the hook for toc hiding

https://gerrit.wikimedia.org/r/107337
Comment 2 Gerrit Notification Bot 2014-01-14 08:08:40 UTC
Change 106132 had a related patch set uploaded by Gerrit Patch Uploader:
Move toctoggle from mediawiki.util.js to separate file mediawiki.toc.js

https://gerrit.wikimedia.org/r/106132
Comment 3 Gerrit Notification Bot 2014-01-23 17:55:36 UTC
Change 107337 merged by jenkins-bot:
(Bug 60030) Use $content of the hook for toc hiding

https://gerrit.wikimedia.org/r/107337
Comment 4 Bartosz Dziewoński 2014-01-24 01:42:46 UTC
Wait, I'm not sure about the status of this now – only one patch was merged so far. Are both require or just that one?
Comment 5 Fomafix 2014-01-24 07:19:14 UTC
(In reply to comment #4)
> Are both require or just that one?

Both are required. With the first patch a toc toggle for the preview is possible again but the toggle of the preview may toggle the toc of the content instead of the preview if there is also a toc in the content.
Comment 6 Fomafix 2014-01-24 11:12:43 UTC
For code regression the change https://gerrit.wikimedia.org/r/107337 is sufficient.

https://gerrit.wikimedia.org/r/106132 solves additional problems when there are multiple table of contents.
Comment 7 Gerrit Notification Bot 2014-02-01 02:20:17 UTC
Change 106132 merged by jenkins-bot:
Move toctoggle from mediawiki.util.js to separate file mediawiki.toc.js

https://gerrit.wikimedia.org/r/106132

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


Navigation
Links