mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
Merge "Fix visual diff in 2017 WTE"
This commit is contained in:
commit
4197941786
|
@ -1067,7 +1067,7 @@ ve.init.mw.ArticleTarget.prototype.getVisualDiffGeneratorPromise = function () {
|
|||
pst: true
|
||||
} ).then( function ( response ) {
|
||||
// Use anonymous function to avoid passing through API promise argument
|
||||
return mw.libs.ve.diffLoader.getModelFromResponse( response );
|
||||
return mw.libs.ve.diffLoader.getModelFromResponse( response, target.section === null ? null : undefined );
|
||||
} );
|
||||
|
||||
return mw.libs.ve.diffLoader.getVisualDiffGeneratorPromise( target.originalDmDocPromise, newRevPromise );
|
||||
|
|
Loading…
Reference in a new issue