Merge "Don't use '#content #firstHeading', unnecessarily specific"

This commit is contained in:
jenkins-bot 2017-03-29 18:02:21 +00:00 committed by Gerrit Code Review
commit 11f562c4e2
2 changed files with 2 additions and 2 deletions

View file

@ -1452,7 +1452,7 @@ ve.init.mw.DesktopArticleTarget.prototype.replacePageContent = function (
mw.hook( 'wikipage.content' ).fire( this.$editableContent.empty().append( $content ) );
if ( displayTitle ) {
$( '#content #firstHeading' ).html( displayTitle );
$( '#firstHeading' ).html( displayTitle );
}
$categories = $( $.parseHTML( categoriesHtml ) );

View file

@ -343,7 +343,7 @@ ve.init.mw.ArticleTarget.prototype.loadSuccess = function ( response ) {
this.checkboxesByName = {};
this.$otherFields = $( [] );
if ( [ 'edit', 'submit' ].indexOf( mw.util.getParamValue( 'action' ) ) !== -1 ) {
$( '#content #firstHeading' ).text(
$( '#firstHeading' ).text(
mw.Title.newFromText( mw.config.get( 'wgPageName' ) ).getPrefixedText()
);
}