Page MenuHomePhabricator

Table of contents interaction should be rebound on livepreview
Closed, ResolvedPublic

Description

When wpuselivepreview is enabled the function for hiding the toc is not initialized.

The function should be initialized by

mw.hook( 'wikipage.content' ).add( ... )

Version: 1.22.0
Severity: minor

Details

Reference
bz54437

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:09 AM
bzimport set Reference to bz54437.
Fomafix created this task.Sep 21 2013, 7:38 PM

Quick patch

Attached:

Change 85526 had a related patch set uploaded by Bartosz Dziewoński:
mediawiki.util: Use 'wikipage.content' hook for TOC hiding

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

I submitted the patch in your name. It would be faster if you did it yourself ;) See [[mw:Developer access]].

Change 85526 merged by jenkins-bot:
mediawiki.util: Use 'wikipage.content' hook for TOC hiding

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