mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Visual diffs: Use new wgDiffOldId/wgDiffNewId
This also removes an undeclared dependency on mediawiki.Uri. Bug: T169574 Depends-On: Ic4abaae6e9c74509f7a114a697cdbb78dd1b89b6 Change-Id: I76803da5f1a52171a1af8de1f3e31ea127a2da78
This commit is contained in:
parent
baf1908b99
commit
6123b452da
|
@ -36,8 +36,8 @@
|
|||
var oldRevPromise, newRevPromise, modulePromise, progress,
|
||||
$revSlider = $( '.mw-revslider-container' ),
|
||||
$wikitextDiff = $( 'table.diff[data-mw="interface"]' ),
|
||||
oldId = +( new mw.Uri() ).query.oldid,
|
||||
newId = mw.config.get( 'wgRevisionId' );
|
||||
oldId = mw.config.get( 'wgDiffOldId' ),
|
||||
newId = mw.config.get( 'wgDiffNewId' );
|
||||
|
||||
mode = item.getData();
|
||||
|
||||
|
|
Loading…
Reference in a new issue