mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "Update wgRevisionId when we change wgCurRevisionId"
This commit is contained in:
commit
a1c4df7980
|
@ -417,7 +417,10 @@ ve.init.mw.ViewPageTarget.prototype.onSave = function ( html, categoriesHtml, ne
|
|||
this.restoring = false;
|
||||
|
||||
if ( newid !== undefined ) {
|
||||
mw.config.set( 'wgCurRevisionId', newid );
|
||||
mw.config.set( {
|
||||
'wgCurRevisionId': newid,
|
||||
'wgRevisionId': newid
|
||||
} );
|
||||
this.revid = newid;
|
||||
}
|
||||
this.saveDialog.close();
|
||||
|
|
Loading…
Reference in a new issue