mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
Follow-up Icb14766: Fix formatversion:2 param
Bug: T255083 Change-Id: I5636e8e21f45c50df31d05d535227cf909a45269
This commit is contained in:
parent
ba295c81dd
commit
f2d3a00a7b
|
@ -1,5 +1,5 @@
|
|||
var
|
||||
api = new mw.Api( { formatversion: 2 } ),
|
||||
api = new mw.Api( { parameters: { formatversion: 2 } } ),
|
||||
controller = require( './controller.js' ),
|
||||
modifier = require( './modifier.js' ),
|
||||
parser = require( './parser.js' ),
|
||||
|
@ -374,7 +374,7 @@ CommentController.prototype.save = function ( parsoidData ) {
|
|||
{
|
||||
// No timeout. Huge talk pages take a long time to save, and falsely reporting an error can
|
||||
// result in duplicate messages when the user retries. (T249071)
|
||||
api: new mw.Api( { ajax: { timeout: 0 }, formatversion: 2 } )
|
||||
api: new mw.Api( { ajax: { timeout: 0 }, parameters: { formatversion: 2 } } )
|
||||
}
|
||||
).catch( function ( code, data ) {
|
||||
// Handle edit conflicts. Load the latest revision of the page, then try again. If the parent
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
var
|
||||
api = new mw.Api( { formatversion: 2 } ),
|
||||
api = new mw.Api( { parameters: { formatversion: 2 } } ),
|
||||
$pageContainer,
|
||||
parser = require( './parser.js' ),
|
||||
utils = require( './utils.js' ),
|
||||
|
|
|
@ -94,7 +94,7 @@ function ReplyWidget( commentController, parsoidData, config ) {
|
|||
this.beforeUnloadHandler = this.onBeforeUnload.bind( this );
|
||||
this.unloadHandler = this.onUnload.bind( this );
|
||||
|
||||
this.api = new mw.Api( { formatversion: 2 } );
|
||||
this.api = new mw.Api( { parameters: { formatversion: 2 } } );
|
||||
this.onInputChangeThrottled = OO.ui.throttle( this.onInputChange.bind( this ), 1000 );
|
||||
|
||||
// Initialization
|
||||
|
@ -525,7 +525,6 @@ ReplyWidget.prototype.onReplyClick = function () {
|
|||
titles: mw.config.get( 'wgRelevantPageName' )
|
||||
} ).then( function () {
|
||||
return widget.api.get( {
|
||||
formatversion: 2,
|
||||
action: 'parse',
|
||||
prop: [ 'text', 'modules', 'jsconfigvars' ],
|
||||
page: mw.config.get( 'wgRelevantPageName' )
|
||||
|
|
|
@ -20,7 +20,7 @@ function MWUsernameCompletionAction( surface ) {
|
|||
// Parent constructor
|
||||
MWUsernameCompletionAction.super.call( this, surface );
|
||||
|
||||
this.api = new mw.Api( { formatversion: 2 } );
|
||||
this.api = new mw.Api( { parameters: { formatversion: 2 } } );
|
||||
this.searchedPrefixes = {};
|
||||
this.localUsers = [];
|
||||
this.ipUsers = [];
|
||||
|
|
Loading…
Reference in a new issue