mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-28 10:11:45 +00:00
Fix topic subscriptions button
Follow-up to a3f665e816
.
Change-Id: I4df324bb6b60a0a840ddfe483aa10143e218bdf8
This commit is contained in:
parent
eae0c1e6e1
commit
534f907d33
|
@ -243,7 +243,7 @@ function initTopicSubscriptions( $container ) {
|
|||
api = getApi(),
|
||||
subscribe = element.classList.contains( 'oo-ui-icon-star' ),
|
||||
commentName = this.getAttribute( 'data-mw-comment-name' ),
|
||||
heading = $( this ).closest( 'header' ).find( 'h2' )[ 0 ],
|
||||
heading = $( this ).closest( '.ext-discussiontools-section' )[ 0 ],
|
||||
section = utils.getHeadlineNodeAndOffset( heading ).node.id,
|
||||
title = mw.config.get( 'wgRelevantPageName' ) + '#' + section;
|
||||
|
||||
|
|
Loading…
Reference in a new issue