mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
When loading VE from action=edit/submit, replace the title shown
Bug: T117643 Change-Id: Ice21389d02ea10adc668c5b0a64ba2b0b9cf5744
This commit is contained in:
parent
f0b2ce2ded
commit
38180b5d4d
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue