From: Fomafix Date: Mon, 6 Oct 2014 19:33:23 +0000 (+0000) Subject: mediawiki.api: Remove check for callback in postWithToken X-Git-Tag: 1.31.0-rc.0~13664^2 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=cd0c385aaf73f790a4ff5e67d086c80e816660df;p=lhc%2Fweb%2Fwiklou.git mediawiki.api: Remove check for callback in postWithToken Follows-up I0a650fdb4affd394ae419e21d54baf790116f6f7. Change-Id: I178f68368cc1930e8b9f12afe5c6db7612235c40 --- diff --git a/resources/src/mediawiki.api/mediawiki.api.js b/resources/src/mediawiki.api/mediawiki.api.js index b85c8e8df3..bb0642e0ea 100644 --- a/resources/src/mediawiki.api/mediawiki.api.js +++ b/resources/src/mediawiki.api/mediawiki.api.js @@ -218,12 +218,6 @@ postWithToken: function ( tokenType, params, ajaxOptions ) { var api = this; - // Do not allow deprecated ok-callback - // FIXME: Remove this check when the deprecated ok-callback is removed in #post - if ( $.isFunction( ajaxOptions ) ) { - ajaxOptions = undefined; - } - return api.getToken( tokenType, params.assert ).then( function ( token ) { params.token = token; return api.post( params, ajaxOptions ).then(