MobileArticleTarget: Update contentSub

Change-Id: I10db861531bd706e6b93aed3cbc501e5d717572f
This commit is contained in:
Ed Sanders 2022-06-07 18:47:28 +01:00
parent 6adeae03ed
commit e4171b944b

View file

@ -402,7 +402,7 @@ ve.init.mw.MobileArticleTarget.prototype.showSaveDialog = function () {
* @inheritdoc
*/
ve.init.mw.MobileArticleTarget.prototype.replacePageContent = function (
html, categoriesHtml, displayTitle, lastModified /* , contentSub */
html, categoriesHtml, displayTitle, lastModified, contentSub
) {
var $content = $( $.parseHTML( html ) );
@ -430,7 +430,9 @@ ve.init.mw.MobileArticleTarget.prototype.replacePageContent = function (
$( '#catlinks' ).replaceWith( $categories );
}
// TODO: Consider contentSub
// eslint-disable-next-line no-jquery/no-global-selector, no-jquery/no-html
$( '.minerva__subtitle' ).html( contentSub );
this.setRealRedirectInterface();
};