From 38180b5d4df057d20aa053ab9bc9347a3b670428 Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Tue, 10 Nov 2015 13:50:18 +0000 Subject: [PATCH] When loading VE from action=edit/submit, replace the title shown Bug: T117643 Change-Id: Ice21389d02ea10adc668c5b0a64ba2b0b9cf5744 --- modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js index 9db9d3d953..a0f89b1f89 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js @@ -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 = {