Followup 6d21d83: unbreak switching to edit source

Forgot to pass the wikitext parameter through, oops :(

Bug: T76114
Change-Id: Ic852e4b10c17b2417f582f35fabb87823e0202e3
This commit is contained in:
Roan Kattouw 2014-11-26 16:23:52 -08:00
parent a14f88d80e
commit 616a9cd1bf

View file

@ -1748,9 +1748,9 @@ ve.init.mw.ViewPageTarget.prototype.switchToWikitextEditor = function ( discardC
} else {
this.serialize(
this.docToSave || ve.dm.converter.getDomFromModel( this.surface.getModel().getDocument() ),
function () {
function ( wikitext ) {
ve.track( 'mwedit.abort', { type: 'switchwith', mechanism: 'navigate' } );
this.submitWithSaveFields( { wpDiff: 1, veswitched: 1 } );
this.submitWithSaveFields( { wpDiff: 1, veswitched: 1 }, wikitext );
}.bind( this )
);
}