mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "Don't use '#content #firstHeading', unnecessarily specific"
This commit is contained in:
commit
11f562c4e2
|
@ -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 ) );
|
||||
|
|
|
@ -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()
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue