mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
Merge "When loading VE from action=edit/submit, replace the title shown"
This commit is contained in:
commit
d29524c8b3
|
@ -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