jenkins-bot has submitted this change and it was merged. Change subject: Search .mw-body instead of #content to support all the skins ......................................................................
Search .mw-body instead of #content to support all the skins Bug: T150148 Change-Id: Id2368e38942e730a1b13942be238b09e6b1951f4 --- M modules/maplink/maplink.js 1 file changed, 2 insertions(+), 2 deletions(-) Approvals: MaxSem: Looks good to me, approved jenkins-bot: Verified diff --git a/modules/maplink/maplink.js b/modules/maplink/maplink.js index 2e7a3b3..0f5e522 100644 --- a/modules/maplink/maplink.js +++ b/modules/maplink/maplink.js @@ -66,8 +66,8 @@ // Some links might be displayed outside of $content, so we need to // search outside. This is an anti-pattern and should be improved... - // Meanwhile #content is better than searching the full document. - $( '.mw-kartographer-maplink', '#content' ).each( function ( index ) { + // Meanwhile .mw-body is better than searching the full document. + $( '.mw-kartographer-maplink', '.mw-body' ).each( function ( index ) { var data = getMapData( this ), link; -- To view, visit https://gerrit.wikimedia.org/r/320303 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Id2368e38942e730a1b13942be238b09e6b1951f4 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Kartographer Gerrit-Branch: master Gerrit-Owner: JGirault <julien.inbox.w...@gmail.com> Gerrit-Reviewer: MaxSem <maxsem.w...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits