Merge "Use mw.Message#parseDom where appropriate"

This commit is contained in:
jenkins-bot 2016-12-28 21:40:18 +00:00 committed by Gerrit Code Review
commit 927856aff3
2 changed files with 5 additions and 5 deletions

View file

@ -812,7 +812,7 @@ ve.init.mw.ArticleTarget.prototype.saveErrorBadToken = function ( username, erro
} else {
userMsg = 'visualeditor-savedialog-identify-user';
}
$msg = $msg.add( $.parseHTML( mw.message( userMsg, username ).parse() ) );
$msg = $msg.add( mw.message( userMsg, username ).parseDom() );
}
this.showSaveError( $msg );
};

View file

@ -61,10 +61,10 @@ ve.ui.MWTemplatePage = function VeUiMWTemplatePage( template, name, config ) {
$( '<hr>' ),
$( '<span>' )
.addClass( 've-ui-mwTemplatePage-description-extra' )
.html( mw.message(
.append( mw.message(
'visualeditor-dialog-transclusion-more-template-description',
title.getRelativeText( mw.config.get( 'wgNamespaceIds' ).template )
).parse() )
).parseDom() )
);
}
} else {
@ -74,10 +74,10 @@ ve.ui.MWTemplatePage = function VeUiMWTemplatePage( template, name, config ) {
if ( title ) {
this.$description
.addClass( 've-ui-mwTemplatePage-description-missing' )
.html( mw.message(
.append( mw.message(
'visualeditor-dialog-transclusion-no-template-description',
title.getPrefixedText()
).parse() )
).parseDom() )
.find( 'a' ).attr( 'target', '_blank' );
}
}