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

Bug: T117643
Change-Id: Ice21389d02ea10adc668c5b0a64ba2b0b9cf5744
This commit is contained in:
Alex Monk 2015-11-10 13:50:18 +00:00
parent f0b2ce2ded
commit 38180b5d4d

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 = {