From 534f907d332446e9db9756cd616a34c6a62618ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Thu, 22 Apr 2021 18:18:08 +0200 Subject: [PATCH] Fix topic subscriptions button Follow-up to a3f665e816367019197e3b0afb142aa223aea052. Change-Id: I4df324bb6b60a0a840ddfe483aa10143e218bdf8 --- modules/controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/controller.js b/modules/controller.js index f40314c62..3432cbd8e 100644 --- a/modules/controller.js +++ b/modules/controller.js @@ -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;