From 612a307d68858d1a8c32e09679429395cc693f65 Mon Sep 17 00:00:00 2001 From: Jon Robson Date: Fri, 9 Dec 2022 14:37:02 -0800 Subject: [PATCH] Use new stable API for subtitle modification Bug: T324876 Depends-On: Id8436324e2ae2fd9f488b65b3b7bfc19611870d1 Change-Id: I8e538939a6d7d4474f2e96b93040f3c68c2f98ec --- modules/ve-mw/init/targets/ve.init.mw.ArticleTarget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ve-mw/init/targets/ve.init.mw.ArticleTarget.js b/modules/ve-mw/init/targets/ve.init.mw.ArticleTarget.js index c71c09d528..eea84deb79 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.ArticleTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.ArticleTarget.js @@ -604,8 +604,8 @@ ve.init.mw.ArticleTarget.prototype.replacePageContent = function ( $( '#catlinks' ).replaceWith( $categories ); } - // eslint-disable-next-line no-jquery/no-html - $( '#contentSub, .minerva__subtitle' ).html( contentSub ); + mw.util.clearSubtitle(); + mw.util.addSubtitle( contentSub ); this.setRealRedirectInterface();