mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
Always use trackingName for tracking
Change-Id: Ifc7d3275277628b310f5c017c43a76f5a7c25ea7
This commit is contained in:
parent
09cde07c45
commit
ff896e0be6
|
@ -1157,7 +1157,7 @@ ve.init.mw.ArticleTarget.prototype.load = function ( dataPromise ) {
|
||||||
this.loading = dataPromise || mw.libs.ve.targetLoader.requestPageData( this.getDefaultMode(), this.pageName, {
|
this.loading = dataPromise || mw.libs.ve.targetLoader.requestPageData( this.getDefaultMode(), this.pageName, {
|
||||||
section: this.section,
|
section: this.section,
|
||||||
oldId: this.requestedRevId,
|
oldId: this.requestedRevId,
|
||||||
targetName: this.constructor.static.name
|
targetName: this.constructor.static.trackingName
|
||||||
} );
|
} );
|
||||||
this.loading
|
this.loading
|
||||||
.done( this.loadSuccess.bind( this ) )
|
.done( this.loadSuccess.bind( this ) )
|
||||||
|
@ -2189,7 +2189,7 @@ ve.init.mw.ArticleTarget.prototype.switchToWikitextEditor = function ( discardCh
|
||||||
dataPromise = mw.libs.ve.targetLoader.requestPageData( 'source', this.pageName, {
|
dataPromise = mw.libs.ve.targetLoader.requestPageData( 'source', this.pageName, {
|
||||||
section: this.section,
|
section: this.section,
|
||||||
oldId: this.requestedRevId,
|
oldId: this.requestedRevId,
|
||||||
targetName: this.constructor.static.name
|
targetName: this.constructor.static.trackingName
|
||||||
} ).then(
|
} ).then(
|
||||||
function ( response ) { return response; },
|
function ( response ) { return response; },
|
||||||
function () {
|
function () {
|
||||||
|
@ -2259,7 +2259,7 @@ ve.init.mw.ArticleTarget.prototype.switchToVisualEditor = function () {
|
||||||
} else {
|
} else {
|
||||||
dataPromise = mw.libs.ve.targetLoader.requestParsoidData( this.pageName, {
|
dataPromise = mw.libs.ve.targetLoader.requestParsoidData( this.pageName, {
|
||||||
oldId: this.revid,
|
oldId: this.revid,
|
||||||
targetName: this.constructor.static.name,
|
targetName: this.constructor.static.trackingName,
|
||||||
modified: this.edited,
|
modified: this.edited,
|
||||||
wikitext: this.getDocToSave()
|
wikitext: this.getDocToSave()
|
||||||
} );
|
} );
|
||||||
|
|
Loading…
Reference in a new issue