Merge "When loading VE from action=edit/submit, replace the title shown"

This commit is contained in:
jenkins-bot 2016-01-22 20:43:02 +00:00 committed by Gerrit Code Review
commit d29524c8b3

View file

@ -276,6 +276,9 @@ ve.init.mw.DesktopArticleTarget.prototype.loadSuccess = function ( response ) {
this.checkboxFields = [];
this.checkboxesByName = {};
this.$otherFields = $( [] );
if ( [ 'edit', 'submit' ].indexOf( mw.util.getParamValue( 'action' ) ) !== -1 ) {
$( '#content #firstHeading' ).text( mw.config.get( 'wgTitle' ) );
}
if ( data.checkboxes ) {
defaults = {